summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-11-18 20:36:22 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-11-19 05:44:37 +0100
commitcfe88f4ab51c9330c0418cbd8b7093db515f9bd5 (patch)
treef5f9d826257c88469d6a09e52896a67f986c6f2b
parentbcf333309f9a9bde21aac1302cbead2b23822458 (diff)
Simplify a bit
Change-Id: I776259d8a79464b536fe90da8b25801d73ced9a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142952 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r--sd/source/ui/view/drawview.cxx9
1 files 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);
}
/**