X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a230426807715c54b6fdcf410e3678ee0dfada6..ac16633fdcfbd3f00d8bf1601a878819d6c20546:/src/generic/vscroll.cpp diff --git a/src/generic/vscroll.cpp b/src/generic/vscroll.cpp index 50bb4c1c6d..4ffa9be85e 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