diff options
author | Eike Rathke <erack@redhat.com> | 2017-03-09 16:05:12 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-03-09 22:10:22 +0100 |
commit | 5047871d7fe44747ec7f6ee4dd48e1a1cdfafa9d (patch) | |
tree | e82e787f699ef851af689827a2c64a9ae8a838ef | |
parent | 89596a1a000cb355b0e9eddd070e9d840298d85f (diff) |
use ScCaptionPtr::insertToDrawPage()
Change-Id: I98dafdf8e571e4745e05df6cbcbf00fd9ecd8ec6
-rw-r--r-- | sc/source/core/data/postit.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx index 0fa5589335e7..0864d2d325e1 100644 --- a/sc/source/core/data/postit.cxx +++ b/sc/source/core/data/postit.cxx @@ -419,7 +419,7 @@ ScNoteCaptionCreator::ScNoteCaptionCreator( ScDocument& rDoc, const ScAddress& r // store note position in user data of caption object ScCaptionUtil::SetCaptionUserData( *rNoteData.mxCaption, rPos ); // insert object into draw page - pDrawPage->InsertObject( rNoteData.mxCaption.get() ); + rNoteData.mxCaption.insertToDrawPage( *pDrawPage ); } } } @@ -1117,10 +1117,11 @@ ScCaptionPtr ScNoteUtil::CreateTempCaption( // create the caption object ScCaptionCreator aCreator( rDoc, rPos, bTailFront ); - SdrCaptionObj* pCaption = aCreator.GetCaption().get(); // just for ease of use // insert caption into page (needed to set caption text) - rDrawPage.InsertObject( pCaption ); + aCreator.GetCaption().insertToDrawPage( rDrawPage ); + + SdrCaptionObj* pCaption = aCreator.GetCaption().get(); // just for ease of use // clone the edit text object, unless user text is present, then set this text if( pNoteCaption && rUserText.isEmpty() ) |