summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-07-21 00:58:21 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-07-21 01:53:24 +0000
commit21be4e095056800fc8869868448e005728d1bb65 (patch)
tree6490fe0681cbe2c3ebf63746242be0e9c55e88b9
parentb820d868918fbb04f16bbb1935bc98f40376309d (diff)
Resolves: tdf#92448 check for numeric '.' only if sheet separator is '.'
Change-Id: I427da08eed3fc5daed2bac4d588b66a3f03fd28c (cherry picked from commit 2fd3560e0815b547ada7d7f6557857fe3c8678ba) Reviewed-on: https://gerrit.libreoffice.org/17244 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sc/source/core/tool/compiler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index 22272fb00a2b..8b1e0799bb7c 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -2929,7 +2929,7 @@ bool ScCompiler::IsReference( const OUString& rName )
if ( ch1 == cDecSep )
return false;
// Who was that imbecile introducing '.' as the sheet name separator!?!
- if ( rtl::isAsciiDigit( ch1 ) )
+ if ( rtl::isAsciiDigit( ch1 ) && pConv->getSpecialSymbol( Convention::SHEET_SEPARATOR) == '.' )
{
// Numerical sheet name is valid.
// But English 1.E2 or 1.E+2 is value 100, 1.E-2 is 0.01