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

Eike Rathke erack at redhat.com
Tue Oct 13 09:33:17 PDT 2015


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

New commits:
commit 14bb562b4a8776974391641adcc62ded013ffd2f
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Oct 13 18:29:27 2015 +0200

    Resolves: tdf#94514 more restrictive check on end of column specifier
    
    ... needed since we accept A:A entire column notation without the need
    of a row number being specified.
    
    Change-Id: I84f6a39e213a4b554e0188e73b4acb34c7a98460

diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx
index 2b781e9..4bd9964 100644
--- a/sc/source/core/tool/address.cxx
+++ b/sc/source/core/tool/address.cxx
@@ -1152,7 +1152,7 @@ static sal_uInt16 lcl_ScAddress_Parse_OOo( const sal_Unicode* p, ScDocument* pDo
         else
             nBits = 0;
 
-        if( nCol > MAXCOL || rtl::isAsciiAlpha( *p ) )
+        if (nCol > MAXCOL || (*p && *p != '$' && !rtl::isAsciiDigit( *p )))
             nBits = 0;
         nRes |= nBits;
         if( !nBits )


More information about the Libreoffice-commits mailing list