From efc6b840a0423099d6c3e0d33c14d34637fbba4c Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Wed, 17 Aug 2011 22:50:51 -0400 Subject: [PATCH] When painting overlapped controls, paint the bottom one first. Then work our way frontward and paint the top one last. --- vcl/source/window/window.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index ebfebb66c910..2d99e550e167 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -2438,13 +2438,13 @@ void Window::ImplCallPaint( const Region* pRegion, sal_uInt16 nPaintFlags ) if ( nPaintFlags & (IMPL_PAINT_PAINTALLCHILDS | IMPL_PAINT_PAINTCHILDS) ) { - // die Childfenster ausgeben - Window* pTempWindow = mpWindowImpl->mpFirstChild; + // Paint from the bottom child window and frontward. + Window* pTempWindow = mpWindowImpl->mpLastChild; while ( pTempWindow ) { if ( pTempWindow->mpWindowImpl->mbVisible ) pTempWindow->ImplCallPaint( pChildRegion, nPaintFlags ); - pTempWindow = pTempWindow->mpWindowImpl->mpNext; + pTempWindow = pTempWindow->mpWindowImpl->mpPrev; } }