[Libreoffice-commits] core.git: Branch 'distro/suse/suse-4.0' - sc/source

Markus Mohrhard markus.mohrhard at googlemail.com
Thu May 30 14:24:15 PDT 2013


 sc/source/ui/docshell/arealink.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 41399cb0da07a1703fd4b44bd93550a43e99588f
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Mon May 27 13:36:16 2013 +0200

    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 at suse.com>
    Tested-by: Noel Power <noel.power at suse.com>

diff --git a/sc/source/ui/docshell/arealink.cxx b/sc/source/ui/docshell/arealink.cxx
index 84d30be..ee322d5 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;


More information about the Libreoffice-commits mailing list