summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-09-29 11:22:36 +0200
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-09-29 11:22:36 +0200
commit9a6a8627c6b9ae98b5773d9791c75582cf1dc043 (patch)
tree51362894e0906160ed892d954f2b1bbd7ba682e6 /vcl
parent75b0496691859d25e6463a05d129b7f0890a6af2 (diff)
dba34a: #i31275# findMatchingEntry: start with the 'current + 1st' entry
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/quickselectionengine.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/control/quickselectionengine.cxx b/vcl/source/control/quickselectionengine.cxx
index 2881a0650646..2d32393bf79a 100644
--- a/vcl/source/control/quickselectionengine.cxx
+++ b/vcl/source/control/quickselectionengine.cxx
@@ -92,7 +92,11 @@ namespace vcl
// TODO: do we really need the Window's settings here? The original code used it ...
String sEntryText;
+ // get the "current + 1" entry
StringEntryIdentifier pSearchEntry = _engineData.rEntryList.CurrentEntry( sEntryText );
+ if ( pSearchEntry )
+ pSearchEntry = _engineData.rEntryList.NextEntry( pSearchEntry, sEntryText );
+ // loop 'til we find another matching entry
StringEntryIdentifier pStartedWith = pSearchEntry;
while ( pSearchEntry )
{