diff --git a/docs/changes.txt b/docs/changes.txt index 81ef7b5700..1f282ab117 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -578,6 +578,10 @@ All (GUI): - Fix crash when setting invalid label ending with "&" (ZaneUJi). +wxGTK: + +- Fix mouse wheel scrolling in wxListCtrl broken just before 3.0.0. + 3.0.0: (released 2013-11-11) ---------------------------- diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 8f41635cf2..a16743410f 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -1723,6 +1723,9 @@ scroll_event(GtkWidget* widget, GdkEventScroll* gdk_event, wxWindow* win) if (!win->GTKProcessEvent(event)) { + if (!range) + return false; + if (direction == GDK_SCROLL_UP || direction == GDK_SCROLL_LEFT) step = -step; AdjustRangeValue(range, step);