[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Wed Apr 12 10:00:42 UTC 2017
sc/source/ui/condformat/condformatdlg.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit dcd9eef1727efb7a909f8009fde4f34f26139522
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sun Apr 9 01:21:25 2017 +0200
don't replace content of formula field when selecting range, tdf#58635
Change-Id: I85953fdd7c2b7f193b2a815564526d985ae2bba4
Reviewed-on: https://gerrit.libreoffice.org/36309
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
(cherry picked from commit 42aece949ec96c775b31216bddd723aa5321e966)
Reviewed-on: https://gerrit.libreoffice.org/36310
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>
diff --git a/sc/source/ui/condformat/condformatdlg.cxx b/sc/source/ui/condformat/condformatdlg.cxx
index b2c0a1c07dd8..9a416692a4fd 100644
--- a/sc/source/ui/condformat/condformatdlg.cxx
+++ b/sc/source/ui/condformat/condformatdlg.cxx
@@ -572,7 +572,10 @@ void ScCondFormatDlg::SetReference(const ScRange& rRef, ScDocument*)
OUString aRefStr(rRef.Format(nFlags, mpViewData->GetDocument(),
ScAddress::Details(mpViewData->GetDocument()->GetAddressConvention(), 0, 0)));
- pEdit->SetRefString( aRefStr );
+ if (pEdit != mpEdRange)
+ pEdit->ReplaceSelected(aRefStr);
+ else
+ pEdit->SetRefString( aRefStr );
updateTitle();
}
}
More information about the Libreoffice-commits
mailing list