mirror of https://github.com/BOINC/boinc.git
MGR: Work around a probable bug in wxWidgets on Linux which prevented some wxListCtrl rows from updating.
This commit is contained in:
parent
ce96f71706
commit
5965a2d858
|
@ -620,21 +620,7 @@ void CBOINCListCtrl::OnMouseDown(wxMouseEvent& event) {
|
|||
void CBOINCListCtrl::RefreshCell(int row, int col) {
|
||||
wxRect r;
|
||||
|
||||
#if (defined (__WXMSW__) && wxCHECK_VERSION(2,8,0))
|
||||
GetSubItemRect(row, col, r);
|
||||
#else
|
||||
int i;
|
||||
|
||||
GetItemRect(row, r);
|
||||
#if ! USE_NATIVE_LISTCONTROL
|
||||
r.y = r.y - GetHeaderHeight() - 1;
|
||||
#endif
|
||||
for (i=0; i< col; i++) {
|
||||
r.x += GetColumnWidth(i);
|
||||
}
|
||||
r.width = GetColumnWidth(col);
|
||||
#endif
|
||||
|
||||
RefreshRect(r);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue