[Libreoffice-commits] .: vcl/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Wed Aug 17 19:54:11 PDT 2011
vcl/source/window/window.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit efc6b840a0423099d6c3e0d33c14d34637fbba4c
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date: Wed Aug 17 22:50:51 2011 -0400
When painting overlapped controls, paint the bottom one first.
Then work our way frontward and paint the top one last.
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index ebfebb6..2d99e55 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;
}
}
More information about the Libreoffice-commits
mailing list