sc/source/ui/view/output3.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c89c4ebe4924b0bc5b038bf2f114e1306caf1133 Author: Armin Le Grand (allotropia) <armin.le.grand.ext...@allotropia.de> AuthorDate: Fri Dec 1 11:10:40 2023 +0100 Commit: Armin Le Grand <armin.le.gr...@me.com> CommitDate: Fri Dec 1 13:11:30 2023 +0100 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.gr...@me.com> 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);