From cfe88f4ab51c9330c0418cbd8b7093db515f9bd5 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Fri, 18 Nov 2022 20:36:22 +0300 Subject: Simplify a bit Change-Id: I776259d8a79464b536fe90da8b25801d73ced9a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142952 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- sd/source/ui/view/drawview.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sd/source/ui/view/drawview.cxx b/sd/source/ui/view/drawview.cxx index 2c972b065570..bd454bec194b 100644 --- a/sd/source/ui/view/drawview.cxx +++ b/sd/source/ui/view/drawview.cxx @@ -498,8 +498,6 @@ bool DrawView::SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAtt void DrawView::CompleteRedraw(OutputDevice* pOutDev, const vcl::Region& rReg, sdr::contact::ViewObjectContactRedirector* pRedirector /*=0*/) { - bool bStandardPaint = true; - SdDrawDocument* pDoc = mpDocShell->GetDoc(); if( pDoc && pDoc->GetDocumentType() == DocumentType::Impress) { @@ -511,15 +509,12 @@ void DrawView::CompleteRedraw(OutputDevice* pOutDev, const vcl::Region& rReg, sd { if( pShowWindow == pOutDev && mpViewSh ) xSlideshow->paint(); - bStandardPaint = false; + return; } } } - if(bStandardPaint) - { - ::sd::View::CompleteRedraw(pOutDev, rReg, pRedirector); - } + ::sd::View::CompleteRedraw(pOutDev, rReg, pRedirector); } /** -- cgit v1.2.3