Always repaint the entire grid when selection has changed by mouse, fixes #1371. (r6000 release is called off.)

Originally committed to SVN as r5998.
This commit is contained in:
Niels Martin Hansen 2011-12-22 13:04:50 +00:00
parent 877d9b5894
commit 58f7ee3015
1 changed files with 1 additions and 2 deletions

View File

@ -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)