]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/font.cpp
suppress (harmless) gcc warning about non-virtual dtor in a class with virtual functions
[wxWidgets.git] / src / msw / font.cpp
index eec88f8c060c4cd94b05e10dfe2759b4c80f1433..024e43d3aef7ac2cdbc636bdc4dd1453fe652665 100644 (file)
@@ -483,7 +483,7 @@ int wxNativeFontInfo::GetPointSize() const
 wxSize wxNativeFontInfo::GetPixelSize() const
 {
     wxSize ret;
-    ret.SetHeight(lf.lfHeight);
+    ret.SetHeight(abs((int)lf.lfHeight));
     ret.SetWidth(lf.lfWidth);
     return ret;
 }