[Libreoffice-commits] core.git: sc/source
Eike Rathke (via logerrit)
logerrit at kemper.freedesktop.org
Sat Oct 31 18:25:18 UTC 2020
sc/source/ui/app/inputhdl.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit bd938176a12cda2b7f1e0fe23d8799ce4ed59f71
Author: Eike Rathke <erack at redhat.com>
AuthorDate: Sat Oct 31 17:07:58 2020 +0100
Commit: Eike Rathke <erack at redhat.com>
CommitDate: Sat Oct 31 19:24:40 2020 +0100
Constructing ScCompiler is unnecessary here
The sheet separator can be obtained from the AddressConvention
extracted from the document's FormulaGrammar.
Change-Id: Ieec8f49f1d338c29665192fc73320f76b8fa1484
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105106
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack at redhat.com>
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index fef75313ca04..df08e89a7b19 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -107,8 +107,9 @@ const sal_Unicode cParenthesesReplacement = 0x0001;
sal_Unicode lcl_getSheetSeparator(ScDocument& rDoc)
{
- ScCompiler aComp(rDoc, ScAddress(), rDoc.GetGrammar());
- return aComp.GetNativeAddressSymbol(ScCompiler::Convention::SHEET_SEPARATOR);
+ const ScCompiler::Convention* pConv = ScCompiler::GetRefConvention(
+ FormulaGrammar::extractRefConvention( rDoc.GetGrammar()));
+ return pConv ? pConv->getSpecialSymbol( ScCompiler::Convention::SHEET_SEPARATOR) : '.';
}
ScTypedCaseStrSet::const_iterator findText(
More information about the Libreoffice-commits
mailing list