Kaydet (Commit) 8984ca20 authored tarafından Eike Rathke's avatar Eike Rathke

flag ScCaptionPtr::setInUndo() in ScUndoReplaceNote

Change-Id: I174be1262074e1fed784806d2f052b36749dff0d
üst 98940fc9
......@@ -709,7 +709,16 @@ ScUndoReplaceNote::ScUndoReplaceNote( ScDocShell& rDocShell, const ScAddress& rP
mpDrawUndo( pDrawUndo )
{
OSL_ENSURE( rNoteData.mxCaption, "ScUndoReplaceNote::ScUndoReplaceNote - missing note caption" );
(bInsert ? maNewData : maOldData) = rNoteData;
if (bInsert)
{
maNewData = rNoteData;
maNewData.mxCaption.setInUndo();
}
else
{
maOldData = rNoteData;
maOldData.mxCaption.setInUndo();
}
}
ScUndoReplaceNote::ScUndoReplaceNote( ScDocShell& rDocShell, const ScAddress& rPos,
......@@ -722,6 +731,8 @@ ScUndoReplaceNote::ScUndoReplaceNote( ScDocShell& rDocShell, const ScAddress& rP
{
OSL_ENSURE( maOldData.mxCaption || maNewData.mxCaption, "ScUndoReplaceNote::ScUndoReplaceNote - missing note captions" );
OSL_ENSURE( !maOldData.mxInitData.get() && !maNewData.mxInitData.get(), "ScUndoReplaceNote::ScUndoReplaceNote - unexpected unitialized note" );
maOldData.mxCaption.setInUndo();
maNewData.mxCaption.setInUndo();
}
ScUndoReplaceNote::~ScUndoReplaceNote()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment