diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-17 17:02:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-17 18:45:14 +0100 |
commit | 5169abbac92f30b950ab19c2c8e285c47fb1f0d7 (patch) | |
tree | 12dc79b6a99b1978982f816037a9c1bad23032f0 /vcl/source/control/ilstbox.cxx | |
parent | 3e5ff1f8d4da3470fa4016264c9410834a9736d8 (diff) |
bool improvements
Change-Id: I7ec4f5b2e691ec03e9e2c5ca3a004f1e04efbc27
Diffstat (limited to 'vcl/source/control/ilstbox.cxx')
-rw-r--r-- | vcl/source/control/ilstbox.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx index cfd428242ed8..a9761a0b0b1b 100644 --- a/vcl/source/control/ilstbox.cxx +++ b/vcl/source/control/ilstbox.cxx @@ -288,7 +288,7 @@ sal_uInt16 ImplEntryList::FindMatchingEntry( const OUString& rStr, sal_uInt16 nS nStart++; // decrements right away const vcl::I18nHelper& rI18nHelper = mpWindow->GetSettings().GetLocaleI18nHelper(); - for ( sal_uInt16 n = nStart; bForward ? ( n < nEntryCount ) : n; ) + for ( sal_uInt16 n = nStart; bForward ? n < nEntryCount : n != 0; ) { if ( !bForward ) n--; |