X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6814d017b8ec4489abd89f9806b929f49ea17eb..89fad939ec0d423961d8e93b2a0927f5b77bf256:/src/gtk/scrolwin.cpp diff --git a/src/gtk/scrolwin.cpp b/src/gtk/scrolwin.cpp index 3c52471d57..72e831f69d 100644 --- a/src/gtk/scrolwin.cpp +++ b/src/gtk/scrolwin.cpp @@ -118,7 +118,8 @@ void wxScrollHelperNative::AdjustScrollbars() int w, h; int vw, vh; - m_targetWindow->m_hasScrolling = m_xScrollPixelsPerLine != 0 || m_yScrollPixelsPerLine != 0; + // this flag indicates which window has the scrollbars + m_win->m_hasScrolling = m_xScrollPixelsPerLine != 0 || m_yScrollPixelsPerLine != 0; m_targetWindow->GetVirtualSize( &vw, &vh );