]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dc.cpp
change the selection appropriately (and refresh it as needed) after deleting a notebo...
[wxWidgets.git] / src / msw / dc.cpp
index 293626093c0528412fde19c0414c3075596f5c47..e533015783809b3b5636c24a0e0ebd119e52e3c9 100644 (file)
@@ -1129,13 +1129,13 @@ void wxDC::DoDrawRotatedText(const wxString& text,
 
         // "upper left" and "upper right"
         CalcBoundingBox(x, y);
-        CalcBoundingBox(x + w*cos(rad), y - h*sin(rad));
+        CalcBoundingBox(x + wxCoord(w*cos(rad)), y - wxCoord(h*sin(rad)));
 
         // "bottom left" and "bottom right"
         x += (wxCoord)(h*sin(rad));
         y += (wxCoord)(h*cos(rad));
         CalcBoundingBox(x, y);
-        CalcBoundingBox(x + h*sin(rad), y + h*cos(rad));
+        CalcBoundingBox(x + wxCoord(h*sin(rad)), y + wxCoord(h*cos(rad)));
     }
 #endif
 }