[Libreoffice-commits] core.git: sc/source
Vitaliy Anderson
vanderson at smartru.com
Fri Mar 10 09:27:30 UTC 2017
sc/source/ui/cctrl/checklistmenu.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit b0240bf12a94e71d1e2ebe3922afc1a3de5cd933
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
Reviewed-on: https://gerrit.libreoffice.org/35030
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 9d39ad3..3879d79 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -1209,7 +1209,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;
@@ -1228,10 +1228,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