]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/scrlwing.cpp
added a check which should prevent the crash of bug 555111
[wxWidgets.git] / src / generic / scrlwing.cpp
index e05628749d846bb4f201483352620fc39da5dd5c..2e0fff375165559a7c329a730508cda115adfe1b 100644 (file)
@@ -675,7 +675,7 @@ void wxScrollHelper::AdjustScrollbars()
         }
 
         if (!m_targetWindow->GetBackingPixmap() &&
-           (noUnitsX != 0) && (noUnitsY != 0))
+           (m_xScrollLines != 0) && (m_yScrollLines != 0))
         {
             int depth = wxDisplayDepth();
             m_targetWindow->SetPixmapWidth(totalPixelWidth);