summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-10-13 18:29:27 +0200
committerEike Rathke <erack@redhat.com>2015-10-13 18:32:28 +0200
commit14bb562b4a8776974391641adcc62ded013ffd2f (patch)
tree01e0f0b24ee8ad45c067c1119c0aea79080e517c /sc
parent6cc9c8c6b540bb6a830bf6571b69b8bd031fa195 (diff)
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
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/address.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx
index 2b781e92d191..4bd996409f4b 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 )