When painting overlapped controls, paint the bottom one first.

Then work our way frontward and paint the top one last.
This commit is contained in:
Kohei Yoshida 2011-08-17 22:50:51 -04:00
parent 4b60da5d1d
commit efc6b840a0

View file

@ -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;
}
}