Kaydet (Commit) b9532822 authored tarafından Caolán McNamara's avatar Caolán McNamara

mpNextBackWin is always null now

Change-Id: Idd789433606da3452b9cb0a702abdf549fb1c8d4
üst aa644ef7
......@@ -105,7 +105,6 @@ struct ImplWinData
struct ImplOverlapData
{
vcl::Region* mpSaveBackRgn; //< saved region, which must be invalidated
VclPtr<vcl::Window> mpNextBackWin; //< next window with saved background
};
struct ImplFrameData
......
......@@ -810,12 +810,8 @@ void Window::SaveBackground( const Point& rPos, const Size& rSize,
void Window::ImplInvalidateAllOverlapBackgrounds()
{
vcl::Window* pWindow = mpWindowImpl->mpFrameData->mpFirstBackWin;
while ( pWindow )
if (pWindow)
{
// remember next window here already, as this window could
// be removed within the next if clause from the list
vcl::Window* pNext = pWindow->mpWindowImpl->mpOverlapData->mpNextBackWin;
if ( ImplIsWindowInFront( pWindow ) )
{
Rectangle aRect1( Point( mnOutOffX, mnOutOffY ),
......@@ -831,8 +827,6 @@ void Window::ImplInvalidateAllOverlapBackgrounds()
}
}
pWindow = pNext;
}
}
......
......@@ -935,7 +935,6 @@ void Window::ImplInit( vcl::Window* pParent, WinBits nStyle, SystemParentData* p
{
mpWindowImpl->mpOverlapData = new ImplOverlapData;
mpWindowImpl->mpOverlapData->mpSaveBackRgn = nullptr;
mpWindowImpl->mpOverlapData->mpNextBackWin = nullptr;
}
if( pParent && ! mpWindowImpl->mbFrame )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment