sc/inc/stringutil.hxx | 2 +- sc/source/ui/undo/undocell.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 466c3564058aae4946cdd21eab9dfef529554d90 Author: Caolán McNamara <caol...@redhat.com> Date: Mon Nov 20 21:06:30 2017 +0000 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 <er...@redhat.com> Tested-by: Eike Rathke <er...@redhat.com> 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:
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits