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
committerCaolán McNamara <caolanm@redhat.com>2015-08-17 12:31:59 +0000
commit3d2c83982dac10bcc7f73d87134a20aec945fbc5 (patch)
treeb133d62d263e606362061b24e96d54cf99bcf40e /sc/source/core/tool/compiler.cxx
parent41086e24ecf5a43646aae0c5d5a66b3e3f483195 (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/17245 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
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 cef2cf74ae86..965ad02fac32 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -2758,7 +2758,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