From 58f7ee30155234c0899ccbe0f90a5c2d78221c14 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Thu, 22 Dec 2011 13:04:50 +0000 Subject: [PATCH] Always repaint the entire grid when selection has changed by mouse, fixes #1371. (r6000 release is called off.) Originally committed to SVN as r5998. --- aegisub/src/base_grid.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aegisub/src/base_grid.cpp b/aegisub/src/base_grid.cpp index d45cc533e..94625f831 100644 --- a/aegisub/src/base_grid.cpp +++ b/aegisub/src/base_grid.cpp @@ -682,8 +682,7 @@ void BaseGrid::OnMouseEvent(wxMouseEvent &event) { if (left_up || dclick) { int old = editBox->linen; editBox->SetToLine(row); - RefreshRect(wxRect(0,(row+1-yPos)*lineHeight,w,lineHeight+2),false); - RefreshRect(wxRect(0,(old+1-yPos)*lineHeight,w,lineHeight+2),false); + Refresh(false); // always redraw the entire grid, to ensure colliding lines are shown properly (#1371) } if (dclick)