X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f97d84a63b21fffcc830390e5bc3fe0eedb6e15b..5fe143dfdfa19c4fe8e15abfa933940fb51662e5:/src/stc/PlatWX.cpp?ds=sidebyside 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;