]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/notebook.cpp
forgot to commit project file for CW before
[wxWidgets.git] / src / gtk / notebook.cpp
index 0621f9fe5b7cdce914d021e96ac2c54671dc213f..113739fb5104a6453df28d1eb1b0954830c71b0c 100644 (file)
@@ -189,6 +189,8 @@ static gint gtk_notebook_key_press_callback( GtkWidget *widget, GdkEventKey *gdk
     if ((gdk_event->keyval == GDK_Tab) || (gdk_event->keyval == GDK_ISO_Left_Tab))
     {
         int sel = win->GetSelection();
+        if (sel == -1)
+            return TRUE;
         wxGtkNotebookPage *nb_page = win->GetNotebookPage(sel);
         wxCHECK_MSG( nb_page, FALSE, _T("invalid selection in wxNotebook") );