diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-05-27 13:36:16 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2013-05-30 23:23:48 +0200 |
commit | 41399cb0da07a1703fd4b44bd93550a43e99588f (patch) | |
tree | 7f609fe2ceb9951b97442f35f5b0dee36a8f69f1 /sc | |
parent | 4f5f14320b61bea61c73699a42030e8aa5960c80 (diff) |
range names need to be checked upper case, fdo#64031
Change-Id: I540821fd7058bf0da27d955c9d966a10dd21ec94
Reviewed-on: https://gerrit.libreoffice.org/4050
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/arealink.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/arealink.cxx b/sc/source/ui/docshell/arealink.cxx index 84d30be0eb9d..ee322d534773 100644 --- a/sc/source/ui/docshell/arealink.cxx +++ b/sc/source/ui/docshell/arealink.cxx @@ -193,10 +193,11 @@ bool ScAreaLink::IsEqual( const String& rFile, const String& rFilter, const Stri bool ScAreaLink::FindExtRange( ScRange& rRange, ScDocument* pSrcDoc, const String& rAreaName ) { bool bFound = false; + rtl::OUString aUpperName = ScGlobal::pCharClass->uppercase(rAreaName); ScRangeName* pNames = pSrcDoc->GetRangeName(); if (pNames) // benannte Bereiche { - const ScRangeData* p = pNames->findByUpperName(rAreaName); + const ScRangeData* p = pNames->findByUpperName(aUpperName); if (p && p->IsValidReference(rRange)) bFound = true; } @@ -205,7 +206,7 @@ bool ScAreaLink::FindExtRange( ScRange& rRange, ScDocument* pSrcDoc, const Strin ScDBCollection* pDBColl = pSrcDoc->GetDBCollection(); if (pDBColl) { - const ScDBData* pDB = pDBColl->getNamedDBs().findByUpperName(ScGlobal::pCharClass->uppercase(rAreaName)); + const ScDBData* pDB = pDBColl->getNamedDBs().findByUpperName(aUpperName); if (pDB) { SCTAB nTab; |