[Libreoffice-commits] core.git: sc/source

Eike Rathke erack at redhat.com
Mon Jul 20 16:09:59 PDT 2015


 sc/source/core/tool/compiler.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2fd3560e0815b547ada7d7f6557857fe3c8678ba
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Jul 21 00:58:21 2015 +0200

    Resolves: tdf#92448 check for numeric '.' only if sheet separator is '.'
    
    Change-Id: I427da08eed3fc5daed2bac4d588b66a3f03fd28c

diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index 0583f71..901261b 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


More information about the Libreoffice-commits mailing list