summaryrefslogtreecommitdiff
path: root/vcl/source/window/paint.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/paint.cxx')
-rw-r--r--vcl/source/window/paint.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index dafc4aa22125..e927e6a86485 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -1542,7 +1542,6 @@ void Window::ImplScroll( const Rectangle& rRect,
vcl::Region aInvalidateRegion;
bool bScrollChildren(nFlags & ScrollFlags::Children);
- bool bErase(!(nFlags & ScrollFlags::NoErase));
if ( !mpWindowImpl->mpFirstChild )
bScrollChildren = false;
@@ -1572,7 +1571,6 @@ void Window::ImplScroll( const Rectangle& rRect,
if (!aInvalidateRegion.IsEmpty())
{
aInvalidateRegion.Move(bReMirror ? -nHorzScroll : nHorzScroll, nVertScroll);
- bErase = true;
}
Rectangle aDestRect(aRectMirror);
@@ -1661,8 +1659,6 @@ void Window::ImplScroll( const Rectangle& rRect,
mpWindowImpl->mnPaintFlags |= IMPL_PAINT_CHECKRTL;
InvalidateFlags nPaintFlags = InvalidateFlags::Children;
- if ( !bErase )
- nPaintFlags |= InvalidateFlags::NoErase;
if ( !bScrollChildren )
{
if ( nOrgFlags & ScrollFlags::NoChildren )