[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Mon Aug 8 09:18:53 PDT 2011


 sc/source/ui/namedlg/namedlg.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 239974245d2440150db4bb2444f7d57b0bc54eb9
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Mon Aug 8 12:17:52 2011 -0400

    [PATCH] fix for fdo#39915: defining named ranges should be case insensitiv
    
    Signed-off-by: Kohei Yoshida <kohei.yoshida at suse.com>

diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx
index d530d72..2452d83 100644
--- a/sc/source/ui/namedlg/namedlg.cxx
+++ b/sc/source/ui/namedlg/namedlg.cxx
@@ -388,7 +388,9 @@ bool ScNameDlg::AddPushed()
                 //	  in ein Token-Array uebersetzt werden?)
                 if ( 0 == pNewEntry->GetErrCode() )
                 {
-                    ScRangeData* pData = mpCurRangeName->findByName(aNewEntry);
+                    rtl::OUString aUpper = aNewEntry;
+                    aUpper.toAsciiUpperCase();
+                    ScRangeData* pData = mpCurRangeName->findByUpperName(aUpper);
                     if (pData)
                     {
                         pNewEntry->SetIndex(pData->GetIndex());


More information about the Libreoffice-commits mailing list