summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-03-26 14:10:58 +0000
committerRobert Pösel <robyer@seznam.cz>2014-03-26 14:10:58 +0000
commit52131ce5df2aa8fd7261a05f8f1d2bc34c8d5584 (patch)
treeedc7244636705bad1086b5c515b4ee56c59e57a3 /plugins/Clist_modern
parent5df94ab3e57398bf6ae510e14e49b726e705fae3 (diff)
Clist_modern: Fix drawing selection for case-sensitive words (filter search)
git-svn-id: http://svn.miranda-ng.org/main/trunk@8756 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r--plugins/Clist_modern/src/modern_clcpaint.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/Clist_modern/src/modern_clcpaint.cpp b/plugins/Clist_modern/src/modern_clcpaint.cpp
index 633aa898d0..7cdd633ee3 100644
--- a/plugins/Clist_modern/src/modern_clcpaint.cpp
+++ b/plugins/Clist_modern/src/modern_clcpaint.cpp
@@ -992,7 +992,8 @@ void CLCPaint::_PaintRowItemsEx( HWND hwnd, HDC hdcMem, ClcData *dat, ClcContact
if ( dat->filterSearch )
{
TCHAR *lowered = CharLowerW(NEWTSTR_ALLOCA(Drawing->szText));
- TCHAR *p1 = _tcsstr(lowered, dat->szQuickSearch);
+ TCHAR *lowered_search = CharLowerW(NEWTSTR_ALLOCA(dat->szQuickSearch));
+ TCHAR *p1 = _tcsstr(lowered, lowered_search);
if (p1)
idx = int(p1 - lowered);
}
@@ -1081,7 +1082,8 @@ void CLCPaint::_PaintRowItemsEx( HWND hwnd, HDC hdcMem, ClcData *dat, ClcContact
if ( dat->filterSearch )
{
TCHAR *lowered = CharLowerW(NEWTSTR_ALLOCA(Drawing->szText));
- TCHAR *p1 = _tcsstr(lowered, dat->szQuickSearch);
+ TCHAR *lowered_search = CharLowerW(NEWTSTR_ALLOCA(dat->szQuickSearch));
+ TCHAR *p1 = _tcsstr(lowered, lowered_search);
if (p1)
idx = int(p1 - lowered);
}
@@ -3044,7 +3046,8 @@ void CLCPaint::_DrawContactText( HDC hdcMem, ClcData *dat, ClcContact *Drawing,
if ( dat->filterSearch )
{
TCHAR *lowered = CharLowerW(NEWTSTR_ALLOCA(Drawing->szText));
- TCHAR *p1 = _tcsstr(lowered, dat->szQuickSearch);
+ TCHAR *lowered_search = CharLowerW(NEWTSTR_ALLOCA(dat->szQuickSearch));
+ TCHAR *p1 = _tcsstr(lowered, lowered_search);
if (p1)
idx = int(p1 - lowered);
}