OSDN Git Service

Log list "Copy" status should one kind of "ADD" show + and log list action
authorFrank Li <lznuaa@gmail.com>
Wed, 11 Feb 2009 16:19:44 +0000 (00:19 +0800)
committerFrank Li <lznuaa@gmail.com>
Wed, 11 Feb 2009 16:19:44 +0000 (00:19 +0800)
src/TortoiseProc/GitLogListBase.cpp

index e36c23a..7566bd9 100644 (file)
@@ -790,7 +790,7 @@ void CGitLogListBase::OnNMCustomdrawLoglist(NMHDR *pNMHDR, LRESULT *pResult)
                                        ::DrawIconEx(pLVCD->nmcd.hdc, rect.left + ICONITEMBORDER, rect.top, m_hModifiedIcon, iconwidth, iconheight, 0, NULL, DI_NORMAL);\r
                                nIcons++;\r
 \r
-                               if (pLogEntry->m_Action & CTGitPath::LOGACTIONS_ADDED)\r
+                               if (pLogEntry->m_Action & (CTGitPath::LOGACTIONS_ADDED|CTGitPath::LOGACTIONS_COPY) )\r
                                        ::DrawIconEx(pLVCD->nmcd.hdc, rect.left+nIcons*iconwidth + ICONITEMBORDER, rect.top, m_hAddedIcon, iconwidth, iconheight, 0, NULL, DI_NORMAL);\r
                                nIcons++;\r
 \r