diff --git a/src/generic/scrlwing.cpp b/src/generic/scrlwing.cpp index e05628749d..2e0fff3751 100644 --- a/src/generic/scrlwing.cpp +++ b/src/generic/scrlwing.cpp @@ -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);