Make the selected item visible, to match behaviour on other platforms

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2014-09-07 17:33:53 +00:00
parent 0c69d619dc
commit e98a9cb43b

View File

@@ -191,6 +191,9 @@ void wxListBox::DoSetSelection(int n, bool select)
m_blockEvents = false;
UpdateOldSelections();
if (select)
EnsureVisible(n);
}
bool wxListBox::IsSelected(int n) const