X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e0ebb716a29a8240bb855e8a01c99379d03e666..2fd716136a961ab6038996343e42257c2d81aac2:/include/wx/fontutil.h diff --git a/include/wx/fontutil.h b/include/wx/fontutil.h index 21a4f8b887..4c4b6a7bbe 100644 --- a/include/wx/fontutil.h +++ b/include/wx/fontutil.h @@ -65,7 +65,7 @@ enum wxXLFDField // functions, the user code can only get the objects of this type from // somewhere and pass it somewhere else (possibly save them somewhere using // ToString() and restore them using FromString()) -class WXDLLEXPORT wxNativeFontInfo +class WXDLLIMPEXP_CORE wxNativeFontInfo { public: #if wxUSE_PANGO @@ -143,8 +143,11 @@ public: wxNativeFontInfo& operator=(const wxNativeFontInfo& info) { - Free(); - Init(info); + if (this != &info) + { + Free(); + Init(info); + } return *this; } #endif // wxUSE_PANGO