summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-03-16 22:31:23 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-03-26 14:14:44 +0000
commit76f33f10309b0ee384a75a7a854858b068d60495 (patch)
treee12e3b6f2ca46cb9998b93b5c1bb3406408ad3cb /vcl
parentAdded shortcut for arrows when doing start math formulas (diff)
downloadcore-76f33f10309b0ee384a75a7a854858b068d60495.tar.gz
core-76f33f10309b0ee384a75a7a854858b068d60495.zip
tdf#67990: Management of case in combobox
I noticed these 2 points: 1) Combobox were used with autocomplete with default (false) value for matchCase => so initialize autocomplete with true value for matchCase 2) FindMatchingEntry uses bLazy as !matchCase but when bLazy = false, no autocomplete can work since you must type the whole word so just use "entryCombo" startsWith "typed string" instead of "entryCombo" == "typed string" (thank you Lionel for this tip: http://nabble.documentfoundation.org/Finding-the-right-location-for-tdf-67990-Base-module-td4143324.html) Change-Id: Ib1063002c3284122fd5279f27c1ccbc177bbac7c Reviewed-on: https://gerrit.libreoffice.org/14885 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/ilstbox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index f01c0ec33c0b..74969b84898c 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -287,7 +287,7 @@ sal_Int32 ImplEntryList::FindMatchingEntry( const OUString& rStr, sal_Int32 nSta
}
else
{
- bMatch = rStr.isEmpty() || (rStr == pImplEntry->maStr );
+ bMatch = rStr.isEmpty() || (pImplEntry->maStr.startsWith(rStr));
}
if ( bMatch )
{