From e98a9cb43b280424ff0508949ce2c65d336fa3dc Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 7 Sep 2014 17:33:53 +0000 Subject: [PATCH] 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 --- src/osx/listbox_osx.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osx/listbox_osx.cpp b/src/osx/listbox_osx.cpp index 964b806f21..1c97085ccb 100644 --- a/src/osx/listbox_osx.cpp +++ b/src/osx/listbox_osx.cpp @@ -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