summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2013-01-13 11:21:01 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2013-01-13 11:33:53 +0400
commit88fae025760982d1fa46265e6c730419a5853ed6 (patch)
tree9b63e9eaf53ae5b882b87d65d3c24ff7bba6d75c
parent6f3c367f9c2bff7520f2a55f1795fd718abea938 (diff)
fix the previous commit
Change-Id: Ibbdf8212e8336817eaacf5d125472804d7678905
-rw-r--r--svtools/source/dialogs/filedlg2.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/svtools/source/dialogs/filedlg2.cxx b/svtools/source/dialogs/filedlg2.cxx
index db8913d1f8d3..fb698ea5415f 100644
--- a/svtools/source/dialogs/filedlg2.cxx
+++ b/svtools/source/dialogs/filedlg2.cxx
@@ -71,7 +71,7 @@ KbdListBox::PreNotify( NotifyEvent& rNEvt )
aEntry = comphelper::string::stripStart(aEntry, ' ').toAsciiUpperCase();
OUString aCompare = OUString(cCharCode).toAsciiUpperCase();
- if ( aEntry.compareTo( aCompare, 1 ) == COMPARE_EQUAL )
+ if ( aEntry.compareTo( aCompare, 1 ) == 0 )
{
SelectEntryPos ( (i + nCurrentPos) % nEntries );
break;
@@ -603,13 +603,15 @@ void ImpPathDialog::PreExecute()
}
OUString aPathStr = aPath.GetFull();
+ aPathStr = aPathStr.toAsciiUpperCase();
for ( i = 0; i < pDriveList->GetEntryCount(); ++i )
{
OUString aEntry = pDriveList->GetEntry(i);
- xub_StrLen nLen = aEntry.getLength();
+ aEntry = aEntry.toAsciiUpperCase();
+ sal_Int32 nLen = aEntry.getLength();
nLen = nLen > 2 ? 2 : nLen;
- if ( aEntry.compareTo( aPathStr, nLen ) == COMPARE_EQUAL )
+ if ( aEntry.compareTo( aPathStr, nLen ) == 0 )
{
pDriveList->SelectEntryPos(i);
break;