summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Le Grand (allotropia) <armin.le.grand.extern@allotropia.de>2023-12-01 11:10:40 +0100
committerArmin Le Grand <Armin.Le.Grand@me.com>2023-12-01 13:11:30 +0100
commitc89c4ebe4924b0bc5b038bf2f114e1306caf1133 (patch)
tree7116ee1fc78fc75f7f4c5efffc451e22919bda47
parent55097433ed766a2ced6b87021a71c8a31cde9d99 (diff)
Prefer checked ptr to SdrPageView over unchecked
Change-Id: I1610cb82681e415ba6e4a741ad46e5aa90148989 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160201 Tested-by: Jenkins Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
-rw-r--r--sc/source/ui/view/output3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/output3.cxx b/sc/source/ui/view/output3.cxx
index 2fc317b85094..bc6efec65400 100644
--- a/sc/source/ui/view/output3.cxx
+++ b/sc/source/ui/view/output3.cxx
@@ -240,7 +240,7 @@ void ScOutputData::DrawSelectiveObjects(SdrLayerID nLayer)
"ScOutputData::DrawSelectiveObjects: More than one SdrPageView, still using 1st one (!)");
SdrPageWindow* patchedPageWindow(pPageView->GetPageWindow(0));
assert(nullptr != patchedPageWindow && "SdrPageWindow *must* exist when 0 != PageWindowCount()");
- SdrPaintWindow temporaryPaintWindow(*pDrawView, *mpDev);
+ SdrPaintWindow temporaryPaintWindow(*pLocalDrawView, *mpDev);
SdrPaintWindow* previousPaintWindow(patchedPageWindow->patchPaintWindow(temporaryPaintWindow));
pPageView->DrawLayer(sal::static_int_cast<SdrLayerID>(nLayer), mpDev);
patchedPageWindow->unpatchPaintWindow(previousPaintWindow);