]> git.saurik.com Git - wxWidgets.git/commitdiff
take pixel sizes into account as well when comparing fonts, not just point sizes...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Jul 2006 12:47:59 +0000 (12:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Jul 2006 12:47:59 +0000 (12:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fontcmn.cpp

index 3033c5d6ca1e0263ccab339d2828b891263ffee9..f111126f13992d260938ceacc013199ebee130e8 100644 (file)
@@ -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() &&