diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-05-27 13:36:16 +0200 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-05-27 13:45:29 +0000 |
commit | a8fb2124310e9f21ca75f2a39b95cdf021173e36 (patch) | |
tree | d83b58bf2afe7253ef35c9dddebd5259fe86322b | |
parent | b571605129426a1bf8eb7c9e9927785f8a9a5305 (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>
-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; |