// display the files
PrimeTextBuffers();
-
- int nResumeTopLine = m_pLeftView->GetScrollPos(SB_VERT)+1;
-
m_pLeftView->PrimeListWithFile();
m_pRightView->PrimeListWithFile();
- m_pLeftView->GoToLine(nResumeTopLine, FALSE);
-
// PrimeListWithFile will call resetview which resets tabs
// mf->m_pLeft->SetTabSize(mf->m_nTabSize);
// mf->m_pRight->SetTabSize(mf->m_nTabSize);
BOOL CMergeEditView::PrimeListWithFile()
{
+ int nResumeTopLine = m_nTopLine;
+
SetWordWrapping(FALSE);
ResetView();
- RecalcVertScrollBar();
+ // RecalcVertScrollBar is done during ScrollToLine
+ //RecalcVertScrollBar();
SetTabSize(mf->m_nTabSize);
+ ScrollToLine(nResumeTopLine);
+
return TRUE;
}
const int nLineHeight = GetLineHeight ();
PrepareSelBounds ();
+ // if the private arrays (m_pdwParseCookies and m_pnActualLineLength)
+ // are defined, check they are in phase wih the text buffer
+ // as the access to these arrays is not protected (simple arrays not CArray)
+ if (m_pdwParseCookies != NULL)
+ ASSERT(m_nParseArraySize == nLineCount);
+ if (m_pnActualLineLength != NULL)
+ ASSERT(m_nActualLengthArraySize == nLineCount);
+
CDC cacheDC;
VERIFY (cacheDC.CreateCompatibleDC (pdc));
if (m_pCacheBitmap == NULL)
2003-07-12 Laoran
+ PATCH: [ 765399 ] Careful view initialization in PrimeListWithFile
+ WinMerge: MergeDoc.cpp MergeEditView.cpp
+ editlib: ccrystaltextview.cpp
+
+2003-07-12 Laoran
PATCH: [ 769122 ] Keep top screen line within the shorter panel
WinMerge: MergeEditView.cpp