From: Vadim Zeitlin Date: Sat, 15 Sep 2007 00:17:58 +0000 (+0000) Subject: always return positive pixel size, even for negative LOGFONT height values X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cde9695427433255fe094c7ca79470d07f461ad8 always return positive pixel size, even for negative LOGFONT height values git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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; }