From cde9695427433255fe094c7ca79470d07f461ad8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 15 Sep 2007 00:17:58 +0000 Subject: [PATCH] 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 --- src/msw/font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }