]> git.saurik.com Git - wxWidgets.git/commitdiff
disable pixel size comparison in operator==() for wxGTK1 as it results in infinite...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Jul 2006 20:15:55 +0000 (20:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Jul 2006 20:15:55 +0000 (20:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fontcmn.cpp

index f111126f13992d260938ceacc013199ebee130e8..7c093918c570fcbb2b5c346af57ac6c34cd591a3 100644 (file)
@@ -328,7 +328,12 @@ bool wxFontBase::operator==(const wxFont& font) const
            (
             Ok() == font.Ok() &&
             GetPointSize() == font.GetPointSize() &&
+            // in wxGTK1 GetPixelSize() calls GetInternalFont() which uses
+            // operator==() resulting in infinite recursion so we can't use it
+            // in that port
+#if !defined(__WXGTK__) || defined(__WXGTK20__)
             GetPixelSize() == font.GetPixelSize() &&
+#endif
             GetFamily() == font.GetFamily() &&
             GetStyle() == font.GetStyle() &&
             GetWeight() == font.GetWeight() &&