]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/listbox.cpp
having ONE set of raster-ops starting from 10.5
[wxWidgets.git] / src / gtk / listbox.cpp
index b6945a51f48e40b20211621532ccfc5b22e5b2b3..621f0199c992c75d6eea1cd31b5118a407534c50 100644 (file)
@@ -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 )