diff options
Diffstat (limited to 'svx/source/svdraw/sdrpaintwindow.cxx')
-rw-r--r-- | svx/source/svdraw/sdrpaintwindow.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/sdrpaintwindow.cxx b/svx/source/svdraw/sdrpaintwindow.cxx index c0a46d49d0b6..c3dcee32b4f7 100644 --- a/svx/source/svdraw/sdrpaintwindow.cxx +++ b/svx/source/svdraw/sdrpaintwindow.cxx @@ -195,9 +195,9 @@ rtl::Reference<sdr::overlay::OverlayManager> SdrPaintView::CreateOverlayManager( // is it a window? if (OUTDEV_WINDOW == rOutputDevice.GetOutDevType()) { - vcl::Window& rWindow = dynamic_cast<vcl::Window&>(rOutputDevice); + vcl::Window* pWindow = rOutputDevice.GetOwnerWindow(); // decide which OverlayManager to use - if (IsBufferedOverlayAllowed() && !rWindow.SupportsDoubleBuffering()) + if (IsBufferedOverlayAllowed() && !pWindow->SupportsDoubleBuffering()) { // buffered OverlayManager, buffers its background and refreshes from there // for pure overlay changes (no system redraw). The 3rd parameter specifies @@ -222,7 +222,7 @@ rtl::Reference<sdr::overlay::OverlayManager> SdrPaintView::CreateOverlayManager( // updates. if (!comphelper::LibreOfficeKit::isActive()) { - rWindow.Invalidate(); + pWindow->Invalidate(); } InitOverlayManager(xOverlayManager); |