]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/gridctrl.cpp
Correct the include order for the resource compiler
[wxWidgets.git] / src / generic / gridctrl.cpp
index 2fcacdfd842387aa86d41a64a788beb265428ed6..1f1fd612730c189f17fa395b9684e787d475592f 100644 (file)
@@ -390,7 +390,7 @@ wxGridCellAutoWrapStringRenderer::GetBestSize(wxGrid& grid,
     {
         width+=10;
         rect.SetWidth(width);
-        height = y *( GetTextLines(grid,dc,attr,rect,row,col).GetCount());
+        height = y * (wx_truncate_cast(wxCoord, GetTextLines(grid,dc,attr,rect,row,col).GetCount()));
         count--;
     // Search for a shape no taller than the golden ratio.
     } while (count && (width  < (height*1.68)) );