mirror of https://github.com/BOINC/boinc.git
fixed wxString() handling to allow compilation
svn path=/trunk/boinc/; revision=11753
This commit is contained in:
parent
08e104f67c
commit
ef90ac3e24
|
@ -286,8 +286,9 @@ void CBOINCGridCellProgressRenderer::DoProgressDrawing(wxGrid& grid, wxGridCellA
|
|||
SetTextColoursAndFont(grid, attr, dc, isSelected);
|
||||
|
||||
wxString value = grid.GetCellValue(row,col);
|
||||
wxString strValue = value + " %";
|
||||
double dv = atof(value);
|
||||
wxString strValue = value + wxString (" %", wxConvUTF8 );
|
||||
double dv;
|
||||
value.ToDouble ( &dv ); // NOTE: we should do error-checking/reporting here!!
|
||||
wxRect p1(rect);
|
||||
wxRect p2(rect);
|
||||
int r = (int)((rect.GetRight()-rect.GetLeft())*dv / 100.0);
|
||||
|
|
Loading…
Reference in New Issue