X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c2f14eeb84c08651a96050ff1f05d195fe3db7f..fe3fc02e1c64cfaeef4549617aab00fcc257f1e8:/src/gtk1/scrolbar.cpp diff --git a/src/gtk1/scrolbar.cpp b/src/gtk1/scrolbar.cpp index a2bb3082e8..28cf2350d8 100644 --- a/src/gtk1/scrolbar.cpp +++ b/src/gtk1/scrolbar.cpp @@ -102,7 +102,7 @@ static gint gtk_scrollbar_button_press_callback( GtkRange *widget, int scroll_height, mouse_pos; // get the mouse position when the click is done - if (widget->orientation == GTK_ORIENTATION_VERTICAL) + if (win->HasFlag(wxSB_VERTICAL)) { scroll_height = GTK_WIDGET(widget)->allocation.height - 16; mouse_pos = (int)gdk_event->y;