diff --git a/src/gtk/notebook.cpp b/src/gtk/notebook.cpp index d9ea1aa400..55d9558f67 100644 --- a/src/gtk/notebook.cpp +++ b/src/gtk/notebook.cpp @@ -748,7 +748,7 @@ int wxNotebook::HitTest(const wxPoint& pt, long *flags) const size_t i = 0; GtkNotebook * notebook = GTK_NOTEBOOK(m_widget); - if (gtk_notebook_get_scrollable(notebook)); + if (gtk_notebook_get_scrollable(notebook)) i = g_list_position( notebook->children, notebook->first_tab ); for ( ; i < count; i++ )