X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b9e3bdc5399e8152eab9cfd05b62c8ea0031fc0b..db4444f0cebf4e63e666a7d6d18141c127535efd:/contrib/src/stc/PlatWX.cpp diff --git a/contrib/src/stc/PlatWX.cpp b/contrib/src/stc/PlatWX.cpp index 54ba588dd1..fbf1faf2a3 100644 --- a/contrib/src/stc/PlatWX.cpp +++ b/contrib/src/stc/PlatWX.cpp @@ -815,7 +815,12 @@ int ListBox::Length() { } void ListBox::Select(int n) { - GETLB(id)->SetSelection(n); + bool select = TRUE; + if (n == -1) { + n = 0; + select = FALSE; + } + GETLB(id)->SetSelection(n, select); #ifdef __WXGTK__ if (n > 4) n = n - 4;