From bd3a4565dca26bc92fde0139a58bfbc6676b50ee Mon Sep 17 00:00:00 2001 From: Frank Li Date: Mon, 16 Feb 2009 21:50:28 +0800 Subject: [PATCH] RebaseDlg: Fix Commit List show Current Rebase commit problem Signed-off-by: Frank Li --- src/TortoiseProc/RebaseDlg.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/TortoiseProc/RebaseDlg.cpp b/src/TortoiseProc/RebaseDlg.cpp index d2a072a0b..abf30b371 100644 --- a/src/TortoiseProc/RebaseDlg.cpp +++ b/src/TortoiseProc/RebaseDlg.cpp @@ -607,19 +607,18 @@ void CRebaseDlg::UpdateProgress() } if(m_CommitList.m_IsOldFirst) - prevIndex=m_CurrentRebaseIndex+1; - else prevIndex=m_CurrentRebaseIndex-1; + else + prevIndex=m_CurrentRebaseIndex+1; if(prevIndex >= 0 && prevIndexm_Action &= ~ CTGitPath::LOGACTIONS_REBASE_CURRENT; - prevRev->m_Action |= CTGitPath::LOGACTIONS_REBASE_DONE; m_CommitList.GetItemRect(prevIndex,&rect,LVIR_BOUNDS); m_CommitList.InvalidateRect(rect); } -- 2.11.4.GIT