summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-08-17 22:50:51 -0400
committerKohei Yoshida <kohei.yoshida@suse.com>2011-08-17 22:51:59 -0400
commitefc6b840a0423099d6c3e0d33c14d34637fbba4c (patch)
treef44e0f1edfd09a6a54437a7fb34bc237153724e7
parent4b60da5d1d25b7cdef001dabac3bbd09d1686718 (diff)
When painting overlapped controls, paint the bottom one first.
Then work our way frontward and paint the top one last.
-rw-r--r--vcl/source/window/window.cxx6
1 files 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;
}
}