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
This commit is contained in:
Vadim Zeitlin 2007-09-15 00:17:58 +00:00
parent d16d0917e4
commit cde9695427

View 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;
}