X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f97d84a63b21fffcc830390e5bc3fe0eedb6e15b..d6ddcd574bce0167851aef142be1f9722c694654:/src/stc/PlatWX.cpp diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index e0eeab7d98..2b478141af 100644 --- a/src/stc/PlatWX.cpp +++ b/src/stc/PlatWX.cpp @@ -566,7 +566,7 @@ void ListBox::Append(char *s) { } int ListBox::Length() { - return ((wxListBox*)id)->Number(); + return ((wxListBox*)id)->GetCount(); } void ListBox::Select(int n) { @@ -586,7 +586,7 @@ int ListBox::GetSelection() { int ListBox::Find(const char *prefix) { if (prefix) { - for (int x=0; x < ((wxListBox*)id)->Number(); x++) { + for (int x=0; x < ((wxListBox*)id)->GetCount(); x++) { wxString text = ((wxListBox*)id)->GetString(x); if (text.StartsWith(prefix)) return x;