diff --git a/src/gtk/listbox.cpp b/src/gtk/listbox.cpp index c8d292fb4d..ad3193f273 100644 --- a/src/gtk/listbox.cpp +++ b/src/gtk/listbox.cpp @@ -942,6 +942,7 @@ void wxListBox::DoSetSelection( int n, bool select ) { // ... and not generate any events in the process GtkDeselectAll(); + return; } wxCHECK_RET( IsValid(n), wxT("invalid index in wxListBox::SetSelection") );