diff options
Diffstat (limited to 'svtools/source/dialogs/filedlg2.cxx')
-rw-r--r-- | svtools/source/dialogs/filedlg2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/dialogs/filedlg2.cxx b/svtools/source/dialogs/filedlg2.cxx index 210dfd48d84d..44e5985944f7 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 ) == 0 ) + if ( aEntry.startsWith( aCompare ) ) { SelectEntryPos ( (i + nCurrentPos) % nEntries ); break; |