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