X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2805bdda51c49398e36bb531abcc6aa021f1d40a..85284ca4b226d9a1ab6bed26c5eaa480543649d5:/src/gtk/scrolwin.cpp diff --git a/src/gtk/scrolwin.cpp b/src/gtk/scrolwin.cpp index e93f017032..245ecc7200 100644 --- a/src/gtk/scrolwin.cpp +++ b/src/gtk/scrolwin.cpp @@ -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)