diff options
author | Eike Rathke <erack@redhat.com> | 2017-03-09 16:05:12 +0100 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2017-05-02 18:56:07 -0400 |
commit | 40281dc243ef529a6e715fc78bd2381fd9c4f297 (patch) | |
tree | db06030093ad7e636fb99c143ebcd9a9ae3f50d7 /sc | |
parent | 0462f29e7381e43e7bd2126358df2559632dd31b (diff) |
use ScCaptionPtr::insertToDrawPage()
Change-Id: I98dafdf8e571e4745e05df6cbcbf00fd9ecd8ec6
Diffstat (limited to 'sc')
-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 638dfa643204..618bbe462b9f 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() ) |