[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - sc/source
Vitaliy Anderson
vanderson at smartru.com
Thu Mar 23 09:11:47 UTC 2017
sc/source/ui/cctrl/checklistmenu.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 7dc991097833b0dc60941b388ac60c909529e239
Author: Vitaliy Anderson <vanderson at smartru.com>
Date: Thu Mar 9 23:18:09 2017 -0800
tdf#106047 Fix case-insensitive search in autofilter
Change-Id: I67899789b0a51a3a04c2085cbab8c0ed62903413
(cherry picked from commit b0240bf12a94e71d1e2ebe3922afc1a3de5cd933)
Reviewed-on: https://gerrit.libreoffice.org/35544
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index fd56093da389..226f029c6633 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -1215,7 +1215,7 @@ IMPL_LINK_NOARG(ScCheckListMenuWindow, TriStateHdl, Button*, void)
IMPL_LINK_NOARG(ScCheckListMenuWindow, EdModifyHdl, Edit&, void)
{
OUString aSearchText = maEdSearch->GetText();
- aSearchText = aSearchText.toAsciiLowerCase();
+ aSearchText = ScGlobal::pCharClass->lowercase( aSearchText );
bool bSearchTextEmpty = aSearchText.isEmpty();
size_t n = maMembers.size();
size_t nSelCount = 0;
@@ -1234,10 +1234,10 @@ IMPL_LINK_NOARG(ScCheckListMenuWindow, EdModifyHdl, Edit&, void)
if ( !bSearchTextEmpty )
{
if ( !bIsDate )
- bPartialMatch = ( aLabelDisp.toAsciiLowerCase().indexOf( aSearchText ) != -1 );
+ bPartialMatch = ( ScGlobal::pCharClass->lowercase( aLabelDisp ).indexOf( aSearchText ) != -1 );
else if ( maMembers[i].meDatePartType == ScCheckListMember::DAY ) // Match with both numerical and text version of month
- bPartialMatch = bPartialMatch || ( OUString( maMembers[i].maRealName + maMembers[i].maDateParts[1] )
- .toAsciiLowerCase().indexOf( aSearchText ) != -1 );
+ bPartialMatch = bPartialMatch || ( ScGlobal::pCharClass->lowercase( OUString( maMembers[i].maRealName + maMembers[i].maDateParts[1] ) )
+ .indexOf( aSearchText ) != -1 );
else
continue;
}
More information about the Libreoffice-commits
mailing list