From ef90ac3e243404a8f12e79bef50f31987e616262 Mon Sep 17 00:00:00 2001 From: Reinhard Prix Date: Tue, 2 Jan 2007 15:53:42 +0000 Subject: [PATCH] fixed wxString() handling to allow compilation svn path=/trunk/boinc/; revision=11753 --- clientgui/BOINCGridCtrl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clientgui/BOINCGridCtrl.cpp b/clientgui/BOINCGridCtrl.cpp index 56aeab389b..be58247c84 100644 --- a/clientgui/BOINCGridCtrl.cpp +++ b/clientgui/BOINCGridCtrl.cpp @@ -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);