X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb040ec186f3ee72cd1cf6a74bcce50aee00b2f6..3503581b33fe1294ab45cbd762e09a655fabd81e:/src/gtk/listbox.cpp diff --git a/src/gtk/listbox.cpp b/src/gtk/listbox.cpp index b6945a51f4..621f0199c9 100644 --- a/src/gtk/listbox.cpp +++ b/src/gtk/listbox.cpp @@ -729,7 +729,7 @@ bool wxListBox::IsSelected( int n ) const GtkTreeIter iter; wxCHECK_MSG( GTKGetIteratorFor(n, &iter), false, wxT("Invalid index") ); - return gtk_tree_selection_iter_is_selected(selection, &iter); + return gtk_tree_selection_iter_is_selected(selection, &iter) != 0; } void wxListBox::DoSetSelection( int n, bool select )