X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f97d84a63b21fffcc830390e5bc3fe0eedb6e15b..211cc8dc907ee50ca6d383b8df16bba9a4d3ce2d:/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;