From ba9833a1d63747eaa5124271a1ac51cb926bce7a Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 21 Nov 2017 15:24:56 +0100 Subject: Keep number format on string cell content Undo, tdf#103234 follow-up Change-Id: I18c281211e6eeb4816da13972c360df85d577491 --- sc/source/ui/undo/undocell.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sc/source/ui/undo') 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; -- cgit