fixed calculations in SetMapMode() (use FP division, not integer)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-06-02 22:41:44 +00:00
parent 2da34e7d9e
commit 82922a02d8

View File

@@ -1615,8 +1615,8 @@ void wxDC::SetMapMode(int mode)
return;
}
double mm2pixelsX = pixel_width / mm_width,
mm2pixelsY = pixel_height / mm_height;
double mm2pixelsX = (double)pixel_width / mm_width,
mm2pixelsY = (double)pixel_height / mm_height;
switch (mode)
{