OSDN Git Service

Fix TortoiseGitBlame crash when file name incorrect
authorFrank Li <lznuaa@gmail.com>
Sat, 31 Jan 2009 03:16:34 +0000 (11:16 +0800)
committerFrank Li <lznuaa@gmail.com>
Sat, 31 Jan 2009 03:16:34 +0000 (11:16 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/TortoiseGitBlame/TortoiseGitBlameView.cpp

index 105f1ef..7069d24 100644 (file)
@@ -2483,8 +2483,8 @@ void CTortoiseGitBlameView::UpdateInfo()
        SendEditor(SCI_SETSCROLLWIDTHTRACKING, TRUE);\r
        SendEditor(SCI_SETREADONLY, TRUE);\r
 \r
        SendEditor(SCI_SETSCROLLWIDTHTRACKING, TRUE);\r
        SendEditor(SCI_SETREADONLY, TRUE);\r
 \r
-       m_lowestrev=1;\r
-       m_highestrev=this->GetLogData()->size();\r
+       m_lowestrev=0;\r
+       m_highestrev=this->GetLogData()->size()+m_NoListCommit.size();\r
 \r
        GetBlameWidth();\r
        CRect rect;\r
 \r
        GetBlameWidth();\r
        CRect rect;\r