diff options
| author | Caolán McNamara <caolanm@redhat.com> | 2017-11-20 21:06:30 +0000 |
|---|---|---|
| committer | Eike Rathke <erack@redhat.com> | 2017-11-21 11:24:14 +0100 |
| commit | 466c3564058aae4946cdd21eab9dfef529554d90 (patch) | |
| tree | bae250ff992cb925b1e1b42007ea87d048c15f35 | |
| parent | 1de5ed41a2a39f7961c877ec5fab8501d70fea7d (diff) | |
tdf#103234 undo replacing text with formula
if this isn't what we want, then presumably ScSetStringParam shouldn't
exist here at all
Change-Id: I17318c38948bc19b7148276935830f83356c7ed2
Reviewed-on: https://gerrit.libreoffice.org/45008
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
| -rw-r--r-- | sc/inc/stringutil.hxx | 2 | ||||
| -rw-r--r-- | sc/source/ui/undo/undocell.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/stringutil.hxx b/sc/inc/stringutil.hxx index b28867f7f361..e02c06bc392c 100644 --- a/sc/inc/stringutil.hxx +++ b/sc/inc/stringutil.hxx @@ -31,7 +31,7 @@ class SvNumberFormatter; * Store parameters used in the ScDocument::SetString() method. Various * options for string-setting operation are specified herein. */ -struct SC_DLLPUBLIC ScSetStringParam +struct SAL_WARN_UNUSED SC_DLLPUBLIC ScSetStringParam { enum TextFormatPolicy { diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx index 65c073b6b8e6..129d2fc43191 100644 --- a/sc/source/ui/undo/undocell.cxx +++ b/sc/source/ui/undo/undocell.cxx @@ -457,7 +457,7 @@ void ScUndoSetCell::SetValue( const ScCellValue& rVal ) { ScSetStringParam aParam; aParam.setTextInput(); - rDoc.SetString(maPos, rVal.mpString->getString()); + rDoc.SetString(maPos, rVal.mpString->getString(), &aParam); } break; case CELLTYPE_EDIT: |
