X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77f15ffe92a859f4b82cc90ec142614b5c3a22da..69659fd770f615210efac4b4fa741b3ad6223616:/src/common/fontcmn.cpp diff --git a/src/common/fontcmn.cpp b/src/common/fontcmn.cpp index f83bb4701f..4fcd211e53 100644 --- a/src/common/fontcmn.cpp +++ b/src/common/fontcmn.cpp @@ -303,7 +303,6 @@ bool wxFontBase::SetNativeFontInfo(const wxString& info) return true; } - UnRef(); return false; } @@ -316,7 +315,6 @@ bool wxFontBase::SetNativeFontInfoUserDesc(const wxString& info) return true; } - UnRef(); return false; } @@ -324,7 +322,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 GetFontData() == font.GetFontData() || + return IsSameAs(font) || ( Ok() == font.Ok() && GetPointSize() == font.GetPointSize() &&