Kaydet (Commit) fc2d70d2 authored tarafından Eike Rathke's avatar Eike Rathke Kaydeden (comit) Andras Timar

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
(cherry picked from commit 14bb562b)
Reviewed-on: https://gerrit.libreoffice.org/19359Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
(cherry picked from commit 25d385b4)
üst 142e692a
......@@ -1153,7 +1153,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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment