fixed wxString() handling to allow compilation

svn path=/trunk/boinc/; revision=11753
This commit is contained in:
Reinhard Prix 2007-01-02 15:53:42 +00:00
parent 08e104f67c
commit ef90ac3e24
1 changed files with 3 additions and 2 deletions

View File

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