diff --git a/0001-implement-toggling-off-removeable-master-elements-wi.patch b/0001-implement-toggling-off-removeable-master-elements-wi.patch index 17459de..0a5d8bc 100644 --- a/0001-implement-toggling-off-removeable-master-elements-wi.patch +++ b/0001-implement-toggling-off-removeable-master-elements-wi.patch @@ -137,13 +137,13 @@ index cd643b0..6e7cb8d 100644 + } + } + -+ for (SdrObject* pObj : aPresMarksToRemove) ++ for (std::vector::iterator aI = aPresMarksToRemove.begin(); aI < aPresMarksToRemove.end(); ++aI) + { + //Unmark object -+ mpDrawView->MarkObj(pObj, mpDrawView->GetSdrPageView(), true); -+ SdPage* pPage = (SdPage*)pObj->GetPage(); ++ mpDrawView->MarkObj((*aI), mpDrawView->GetSdrPageView(), true); ++ SdPage* pPage = (SdPage*)(*aI)->GetPage(); + //remove placeholder from master page -+ pPage->DestroyDefaultPresObj(pPage->GetPresObjKind(pObj)); ++ pPage->DestroyDefaultPresObj(pPage->GetPresObjKind((*aI))); + } + + bConsumed = true;