Commits

obo  committed 9818a6a

#i10000# const class OutlinerParaObject has no member named Clone

  • Participants
  • Parent commits c81e501

Comments (0)

Files changed (1)

File sc/source/core/data/postit.cxx

             if( pCaption )
             {
                 // copy edit text object (object must be inserted into page already)
-                if( const OutlinerParaObject* pOPO = pCaption->GetOutlinerParaObject() )
-                    maNoteData.mpCaption->SetOutlinerParaObject( pOPO->Clone() );
+                if( OutlinerParaObject* pOPO = pCaption->GetOutlinerParaObject() )
+                    maNoteData.mpCaption->SetOutlinerParaObject( pOPO );
                 // copy formatting items (after text has been copied to apply font formatting)
                 maNoteData.mpCaption->SetMergedItemSetAndBroadcast( pCaption->GetMergedItemSet() );
                 // move textbox position relative to new cell, copy textbox size