X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ee8fd6b1bdcae7c7d34a4c7c142895dd4c4573fb..6184558583df419ff7830abaf16e7ec40ac00b32:/src/msw/font.cpp diff --git a/src/msw/font.cpp b/src/msw/font.cpp index eec88f8c06..024e43d3ae 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -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; }