X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d04f9b8e31da4fc851fe6659234064b5bd2d21e9..129b8b1a215fc1fcc1b9f06daa0aeaf22bbce614:/src/common/fontcmn.cpp diff --git a/src/common/fontcmn.cpp b/src/common/fontcmn.cpp index 0257058f80..236f10b00d 100644 --- a/src/common/fontcmn.cpp +++ b/src/common/fontcmn.cpp @@ -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() &&