[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - sc/source

Eike Rathke erack at redhat.com
Mon Jul 20 18:53:57 PDT 2015


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

New commits:
commit 21be4e095056800fc8869868448e005728d1bb65
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
    (cherry picked from commit 2fd3560e0815b547ada7d7f6557857fe3c8678ba)
    Reviewed-on: https://gerrit.libreoffice.org/17244
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index 22272fb..8b1e079 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


More information about the Libreoffice-commits mailing list