summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-09-03 12:14:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-09-03 14:53:33 +0200
commit9699f6e2aa13cd82d96740d96d8f9bf7637b68fe (patch)
tree262913a98da404b03caee98efb1941a01190c3a5 /sd/source
parent3554e6d92b9045e6dd9881e294c3306dc08aeac9 (diff)
crashtesting: assert on loading ooo57561-1.sxi
presumably a problem since: commit 8611f6e259b807b4f19c8dc0eab86ca648891ce3 Date: Thu May 27 10:27:46 2021 +0200 ref-count SdrObject Change-Id: Id3c42d229f72d7b4f764e75cf13a193585d6fd76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139316 Tested-by: Jenkins Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/core/EffectMigration.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/core/EffectMigration.cxx b/sd/source/core/EffectMigration.cxx
index 8dd9d0905805..fc09d8ab5f19 100644
--- a/sd/source/core/EffectMigration.cxx
+++ b/sd/source/core/EffectMigration.cxx
@@ -1362,10 +1362,10 @@ void EffectMigration::CreateAnimatedGroup(SdrObjGroup const & rGroupObj, SdPage&
while(aIter.IsMore())
{
// do move to page rough with old/current stuff, will be different in aw080 anyways
- SdrObject* pCandidate = aIter.Next();
+ rtl::Reference<SdrObject> pCandidate = aIter.Next();
rGroupObj.GetSubList()->NbcRemoveObject(pCandidate->GetOrdNum());
- rPage.NbcInsertObject(pCandidate);
- aObjects.push_back(pCandidate);
+ rPage.NbcInsertObject(pCandidate.get());
+ aObjects.push_back(pCandidate.get());
}
// create main node