summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-04-10 23:25:34 +0200
committerJan Holesovsky <kendy@collabora.com>2017-05-15 21:59:06 +0200
commitdc1833e012c581c8b534652c28ebf635108ba279 (patch)
tree1879cad97dfbb8bd1645abe5afe1e5196440448a /sc/source
parent26337c1307a1cdee72b2d457cd0d210227662e29 (diff)
flag ScCaptionPtr::setInUndo() in ScUndoReplaceNote
Change-Id: I174be1262074e1fed784806d2f052b36749dff0d
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/undo/undocell.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx
index ee8ec67237c2..1e39da276459 100644
--- a/sc/source/ui/undo/undocell.cxx
+++ b/sc/source/ui/undo/undocell.cxx
@@ -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()
t/lo/core/commit/remotebridges?id=e7bc3cab019fbf040f9fb8b53ae2cf3f977d200b'>remove boilerplate in UNO Exception constructor callsNoel Grandin 2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann 2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann 2014-02-26Remove visual noise from remotebridgesAlexander Wilms 2014-02-04fdo#54938 Convert dtrans, remoteb., reportd., ucbhelper to cppu::supportsSer..Alexandre Vicenzi 2013-12-17Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann 2013-11-11remove unnecessary use of OUString constructorNoel Grandin 2013-08-15Mark as constTakeshi Abe 2013-06-29remove OUString wrap for string literalsThomas Arnhold 2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák 2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks 2013-04-19Remove any remaining remnants of unused component_canUnload featureStephan Bergmann 2013-04-19remove unused component_canUnload functionsMatúš Kukan 2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák 2013-03-27-Wunused-macrosStephan Bergmann 2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold 2013-03-14remove legacy build.pl prj/build.lst files.Michael Meeks 2013-02-28remove all d.lstMichael Stahl 2012-12-21fdo#46808, Convert frame::Desktop to new style service.Noel Grandin