From f433b4917ab2d4ad8a7d216b623be72368e7e9d5 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sun, 2 Jul 2017 01:02:08 +0200 Subject: [PATCH] Fix case sensitive searching and use m_pFindDialog->MatchCase() Signed-off-by: Sven Strickroth --- src/TortoiseGitBlame/TortoiseGitBlameView.cpp | 2 +- src/TortoiseProc/RefLogDlg.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TortoiseGitBlame/TortoiseGitBlameView.cpp b/src/TortoiseGitBlame/TortoiseGitBlameView.cpp index 0d0cafb26..24d640d0c 100644 --- a/src/TortoiseGitBlame/TortoiseGitBlameView.cpp +++ b/src/TortoiseGitBlame/TortoiseGitBlameView.cpp @@ -1861,7 +1861,7 @@ LRESULT CTortoiseGitBlameView::OnFindDialogMessage(WPARAM /*wParam*/, LPARAM /*l // to search for the requested string. if(m_pFindDialog->FindNext()) { - m_bMatchCase = !!(m_pFindDialog->m_nFlags & FR_MATCHCASE); + m_bMatchCase = !!(m_pFindDialog->MatchCase()); m_sFindText = m_pFindDialog->GetFindString(); theApp.WriteInt(L"FindMatchCase", m_bMatchCase ? 1 : 0); diff --git a/src/TortoiseProc/RefLogDlg.cpp b/src/TortoiseProc/RefLogDlg.cpp index 613c45669..b7350e701 100644 --- a/src/TortoiseProc/RefLogDlg.cpp +++ b/src/TortoiseProc/RefLogDlg.cpp @@ -252,7 +252,7 @@ LRESULT CRefLogDlg::OnFindDialogMessage(WPARAM /*wParam*/, LPARAM /*lParam*/) CString findString = m_pFindDialog->GetFindString(); bool bFound = false; - bool bCaseSensitive = !!(m_pFindDialog->m_nFlags & FR_MATCHCASE); + bool bCaseSensitive = !!(m_pFindDialog->MatchCase()); if (!bCaseSensitive) findString.MakeLower(); -- 2.11.4.GIT