diff options
Diffstat (limited to 'sc/source/ui/drawfunc/futext3.cxx')
-rw-r--r-- | sc/source/ui/drawfunc/futext3.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/drawfunc/futext3.cxx b/sc/source/ui/drawfunc/futext3.cxx index 3bc52a502b83..6a3387b2d060 100644 --- a/sc/source/ui/drawfunc/futext3.cxx +++ b/sc/source/ui/drawfunc/futext3.cxx @@ -79,7 +79,7 @@ void FuText::StopEditMode(sal_Bool /*bTextDirection*/) if( const ScDrawObjData* pCaptData = ScDrawLayer::GetNoteCaptionData( pObject, rViewData.GetTabNo() ) ) { aNotePos = pCaptData->maStart; - pNote = rDoc.GetNote( aNotePos ); + pNote = rDoc.GetNotes( aNotePos.Tab() )->findByAddress( aNotePos ); OSL_ENSURE( pNote && (pNote->GetCaption() == pObject), "FuText::StopEditMode - missing or invalid cell note" ); } @@ -147,13 +147,13 @@ void FuText::StopEditMode(sal_Bool /*bTextDirection*/) // rescue note data before deletion ScNoteData aNoteData( pNote->GetNoteData() ); // delete note from document (removes caption, but does not delete it) - rDoc.DeleteNote( aNotePos ); + rDoc.GetNotes( aNotePos.Tab() )->erase( aNotePos ); // create undo action for removed note pUndoMgr->AddUndoAction( new ScUndoReplaceNote( *pDocShell, aNotePos, aNoteData, false, pDrawLayer->GetCalcUndo() ) ); } else { - rDoc.DeleteNote( aNotePos ); + rDoc.GetNotes( aNotePos.Tab() )->erase( aNotePos ); } // ScDocument::DeleteNote has deleted the note that pNote points to pNote = 0; |