From a4761e8e037f4a4768c10263c87b5e4c36ff8413 Mon Sep 17 00:00:00 2001 From: sdottaka Date: Sun, 7 Aug 2011 21:34:36 +0900 Subject: [PATCH] fix no-redraw problem when resizing the second and the third panes --- Src/MergeEditView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/MergeEditView.cpp b/Src/MergeEditView.cpp index 10e97fff2..3ddb06c09 100644 --- a/Src/MergeEditView.cpp +++ b/Src/MergeEditView.cpp @@ -3598,7 +3598,7 @@ void CMergeEditView::OnSize(UINT nType, int cx, int cy) return; CMergeDoc * pDoc = GetDocument(); - if (m_nThisPane == 0) + if (m_nThisPane < pDoc->m_nBuffers - 1) { // To calculate subline index correctly // we have to invalidate line cache in all pane before calling the function related the subline. @@ -3609,7 +3609,7 @@ void CMergeEditView::OnSize(UINT nType, int cx, int cy) pView->InvalidateScreenRect(FALSE); } } - else if (m_nThisPane == pDoc->m_nBuffers - 1) + else { for (int nPane = 0; nPane < pDoc->m_nBuffers; nPane++) { -- 2.11.0