summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-08-08 12:17:52 -0400
committerKohei Yoshida <kohei.yoshida@suse.com>2011-08-08 12:18:16 -0400
commit239974245d2440150db4bb2444f7d57b0bc54eb9 (patch)
tree3d558a0d461f93437ef7c578b098499f4d1edbd5
parentdb5239a5821ac8cd9d2f7e3c86c7c20223d8afc9 (diff)
[PATCH] fix for fdo#39915: defining named ranges should be case insensitiv
Signed-off-by: Kohei Yoshida <kohei.yoshida@suse.com>
-rw-r--r--sc/source/ui/namedlg/namedlg.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx
index d530d72a4..2452d83ad 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());