summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/compiler.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-07-21 00:58:21 +0200
committerEike Rathke <erack@redhat.com>2015-07-21 01:09:10 +0200
commit2fd3560e0815b547ada7d7f6557857fe3c8678ba (patch)
tree688235508959af8366524a9a246fc664eee8bcde /sc/source/core/tool/compiler.cxx
parent91457fb326dda7bd1fc6d9e1b3afe0667425121c (diff)
Resolves: tdf#92448 check for numeric '.' only if sheet separator is '.'
Change-Id: I427da08eed3fc5daed2bac4d588b66a3f03fd28c
Diffstat (limited to 'sc/source/core/tool/compiler.cxx')
-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 0583f71b2bf6..901261b7f25b 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -2928,7 +2928,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