]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for BCC 5.5: use IsSameAs() instead of accessing m_refData directly...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 26 Nov 2006 20:18:53 +0000 (20:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 26 Nov 2006 20:18:53 +0000 (20:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fontcmn.cpp

index 0257058f806271276443956870eee449815c6400..236f10b00d9efccb9cefccf9ec5cc5fffb039ef2 100644 (file)
@@ -324,7 +324,7 @@ bool wxFontBase::operator==(const wxFont& font) const
 {
     // either it is the same font, i.e. they share the same common data or they
     // have different ref datas but still describe the same font
-    return m_refData == font.m_refData ||
+    return IsSameAs(font) ||
            (
             Ok() == font.Ok() &&
             GetPointSize() == font.GetPointSize() &&