summaryrefslogtreecommitdiff
path: root/sc/source/ui/undo
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-11-21 15:24:56 +0100
committerEike Rathke <erack@redhat.com>2017-11-21 15:25:45 +0100
commitba9833a1d63747eaa5124271a1ac51cb926bce7a (patch)
tree7637854f19e2801cdeb30078f12ab302070af22a /sc/source/ui/undo
parentf2f0a7c5a9d8185fedef5c737d1b7479b9fc0c1e (diff)
Keep number format on string cell content Undo, tdf#103234 follow-up
Change-Id: I18c281211e6eeb4816da13972c360df85d577491
Diffstat (limited to 'sc/source/ui/undo')
-rw-r--r--sc/source/ui/undo/undocell.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx
index 129d2fc43191..5c10cd3282aa 100644
--- a/sc/source/ui/undo/undocell.cxx
+++ b/sc/source/ui/undo/undocell.cxx
@@ -457,6 +457,8 @@ void ScUndoSetCell::SetValue( const ScCellValue& rVal )
{
ScSetStringParam aParam;
aParam.setTextInput();
+ // Undo only cell content, without setting any number format.
+ aParam.meSetTextNumFormat = ScSetStringParam::Keep;
rDoc.SetString(maPos, rVal.mpString->getString(), &aParam);
}
break;