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:
parent
d16d0917e4
commit
cde9695427
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user