From cc3de8a3fc8e91ad88a20eb2df36490e532ba6c1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 2 Jul 2006 12:47:59 +0000 Subject: [PATCH] take pixel sizes into account as well when comparing fonts, not just point sizes which could be the same for fonts with slightly different height in pixels or, worse, the fonts with the same height but compeltely different widths git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/fontcmn.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/fontcmn.cpp b/src/common/fontcmn.cpp index 3033c5d6ca..f111126f13 100644 --- a/src/common/fontcmn.cpp +++ b/src/common/fontcmn.cpp @@ -328,6 +328,7 @@ bool wxFontBase::operator==(const wxFont& font) const ( Ok() == font.Ok() && GetPointSize() == font.GetPointSize() && + GetPixelSize() == font.GetPixelSize() && GetFamily() == font.GetFamily() && GetStyle() == font.GetStyle() && GetWeight() == font.GetWeight() && -- 2.49.0