diff options
-rw-r--r-- | vcl/source/window/paint.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx index c1722d270b0a..6402639c6f47 100644 --- a/vcl/source/window/paint.cxx +++ b/vcl/source/window/paint.cxx @@ -601,11 +601,10 @@ void Window::ImplCallPaint(const vcl::Region* pRegion, sal_uInt16 nPaintFlags) nPaintFlags = mpWindowImpl->mnPaintFlags & ~(IMPL_PAINT_PAINT); + PaintHelper aHelper(this, nPaintFlags); + if (mpWindowImpl->mnPaintFlags & IMPL_PAINT_PAINT) - { - PaintHelper aHelper(this, nPaintFlags); aHelper.DoPaint(pRegion); - } else mpWindowImpl->mnPaintFlags = 0; } |