From afae534956f4a36f1e1d228d9f77a316ef8e89af Mon Sep 17 00:00:00 2001 From: Frank Li Date: Wed, 22 Sep 2010 22:01:50 +0800 Subject: [PATCH] Fix sometime disappear when choose one at log dialog Signed-off-by: Frank Li --- src/TortoiseProc/GitLogListBase.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/TortoiseProc/GitLogListBase.cpp b/src/TortoiseProc/GitLogListBase.cpp index 119e8e661..9143a74ee 100644 --- a/src/TortoiseProc/GitLogListBase.cpp +++ b/src/TortoiseProc/GitLogListBase.cpp @@ -1014,20 +1014,8 @@ void CGitLogListBase::OnNMCustomdrawLoglist(NMHDR *pNMHDR, LRESULT *pResult) if (m_arShownList.GetCount() > (INT_PTR)pLVCD->nmcd.dwItemSpec && (!this->m_IsRebaseReplaceGraph) ) { CRect rect; - GetSubItemRect(pLVCD->nmcd.dwItemSpec, pLVCD->iSubItem, LVIR_BOUNDS, rect); - if(pLVCD->iSubItem == 0) - { - CRect second; - for(int i=1;i< m_ColumnManager.GetColumnCount();i++) - { - if( m_ColumnManager.IsVisible(i)) - { - GetSubItemRect(pLVCD->nmcd.dwItemSpec, pLVCD->iSubItem+i, LVIR_BOUNDS, second); - rect.right=second.left; - } - } - } - + GetSubItemRect(pLVCD->nmcd.dwItemSpec, pLVCD->iSubItem, LVIR_LABEL, rect); + //TRACE(_T("A Graphic left %d right %d\r\n"),rect.left,rect.right); FillBackGround(pLVCD->nmcd.hdc, (INT_PTR)pLVCD->nmcd.dwItemSpec,rect); -- 2.11.4.GIT