Repaint rows when they are added or removed from the selection

Originally committed to SVN as r4613.
This commit is contained in:
Thomas Goyne 2010-06-27 04:54:58 +00:00
parent 4db892935c
commit a47080137d

View file

@ -249,6 +249,11 @@ void BaseGrid::SelectRow(int row, bool addToSelected, bool select) {
added.insert(line);
AnnounceSelectedSetChanged(added, Selection());
int w = 0;
int h = 0;
GetClientSize(&w,&h);
RefreshRect(wxRect(0,(row+1-yPos)*lineHeight,w,lineHeight),false);
}
else if (!select && selection.find(line) != selection.end()) {
@ -258,6 +263,11 @@ void BaseGrid::SelectRow(int row, bool addToSelected, bool select) {
removed.insert(line);
AnnounceSelectedSetChanged(Selection(), removed);
int w = 0;
int h = 0;
GetClientSize(&w,&h);
RefreshRect(wxRect(0,(row+1-yPos)*lineHeight,w,lineHeight),false);
}
}