OSDN Git Service

Show Authordate
authorFrank Li <lznuaa@gmail.com>
Mon, 11 Jan 2010 12:37:02 +0000 (20:37 +0800)
committerFrank Li <lznuaa@gmail.com>
Mon, 11 Jan 2010 12:37:02 +0000 (20:37 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/TortoiseProc/GitLogListBase.cpp

index 9416d79..b1ada30 100644 (file)
@@ -1152,7 +1152,7 @@ void CGitLogListBase::OnLvnGetdispinfoLoglist(NMHDR *pNMHDR, LRESULT *pResult)
                        lstrcpyn(pItem->pszText, (LPCTSTR)pLogEntry->m_AuthorName, pItem->cchTextMax);\r
                break;\r
        case this->LOGLIST_DATE: //Date\r
-               if (!pLogEntry && pLogEntry->m_CommitHash.IsEmpty())\r
+               if ( pLogEntry && (!pLogEntry->m_CommitHash.IsEmpty()) )\r
                        lstrcpyn(pItem->pszText,\r
                                CAppUtils::FormatDateAndTime( pLogEntry->m_AuthorDate, m_DateFormat, true, m_bRelativeTimes ), \r
                                pItem->cchTextMax);\r