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:
@@ -483,7 +483,7 @@ int wxNativeFontInfo::GetPointSize() const
|
|||||||
wxSize wxNativeFontInfo::GetPixelSize() const
|
wxSize wxNativeFontInfo::GetPixelSize() const
|
||||||
{
|
{
|
||||||
wxSize ret;
|
wxSize ret;
|
||||||
ret.SetHeight(lf.lfHeight);
|
ret.SetHeight(abs((int)lf.lfHeight));
|
||||||
ret.SetWidth(lf.lfWidth);
|
ret.SetWidth(lf.lfWidth);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user