]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fontcmn.cpp
fixing compilo for 10.5
[wxWidgets.git] / src / common / fontcmn.cpp
index 3033c5d6ca1e0263ccab339d2828b891263ffee9..7c093918c570fcbb2b5c346af57ac6c34cd591a3 100644 (file)
@@ -328,6 +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() &&