X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e3f26d842e5f1e204c9ccc97e419e8ff336b0f6..508b6523350b4b1c4b2518b6c8c69e5d161f26c5:/src/generic/vscroll.cpp diff --git a/src/generic/vscroll.cpp b/src/generic/vscroll.cpp index a948519a9a..50bb4c1c6d 100644 --- a/src/generic/vscroll.cpp +++ b/src/generic/vscroll.cpp @@ -592,8 +592,8 @@ bool wxVarScrollHelperBase::DoScrollToUnit(size_t unit) // finally refresh the display -- but only redraw as few units as possible // to avoid flicker. We can't do this if we have children because they // won't be scrolled - if ( m_targetWindow->GetChildren().empty() && - GetVisibleBegin() >= unitLastOld || GetVisibleEnd() <= unitFirstOld ) + if ( (m_targetWindow->GetChildren().empty() && + GetVisibleBegin() >= unitLastOld) || GetVisibleEnd() <= unitFirstOld ) { // the simplest case: we don't have any old units left, just redraw // everything