]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/scrolwin.cpp
respect wxBU_NOTEXT style in wxButton
[wxWidgets.git] / src / gtk / scrolwin.cpp
index e93f017032be5e2526b4f8c74718937ef2447bf1..245ecc72006358f0639b314cdaa45a610c521319 100644 (file)
@@ -44,6 +44,9 @@ void wxScrollHelper::DoAdjustScrollbar(GtkRange* range,
                                        int *lines,
                                        int *linesPerPage)
 {
+    if (!range)
+        return;
+
     int upper;
     int page_size;
     if (pixelsPerLine > 0 && winSize > 0 && winSize < virtSize)