From a51b1f91914d6c6826f1427a2ccc6fc4ac70969a Mon Sep 17 00:00:00 2001 From: Dennis Lim Date: Thu, 28 Jun 2001 13:30:47 +0000 Subject: [PATCH] bug fix scroll to first diff. --- Src/MainFrm.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Src/MainFrm.cpp b/Src/MainFrm.cpp index 768852271..2563bd82e 100644 --- a/Src/MainFrm.cpp +++ b/Src/MainFrm.cpp @@ -257,6 +257,12 @@ void CMainFrame::ShowMergeDoc(LPCTSTR szLeft, LPCTSTR szRight) else MDINext(); + // scroll to first diff + if(m_bScrollToFirst && m_pMergeDoc->m_diffs.GetSize()!=0) + { + m_pLeft->SelectDiff(0, TRUE, FALSE); + } + // set the document types TCHAR name[MAX_PATH],ext[MAX_PATH]; split_filename(szLeft, NULL, name, ext); -- 2.11.0