diff --git a/clientgui/ViewStatistics.cpp b/clientgui/ViewStatistics.cpp index 9dc108e8c3..11461a32b6 100644 --- a/clientgui/ViewStatistics.cpp +++ b/clientgui/ViewStatistics.cpp @@ -106,7 +106,7 @@ void CPaintStatistics::OnPaint(wxPaintEvent& WXUNUSED(event)) { nb_proj_row=nb_proj; } else { nb_proj_col=2; - nb_proj_row=(wxInt32)ceil((wxCoord)(nb_proj/static_cast(nb_proj_col))); + nb_proj_row=(wxInt32)ceil(static_cast(nb_proj/static_cast(nb_proj_col))); } wxInt32 col=1, row=1; //Used to identify the actual row/col