]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/fontutil.h
Rebake after last change.
[wxWidgets.git] / include / wx / fontutil.h
index 21a4f8b88716c8b38590f4d17cfbf6f3c128138e..4c4b6a7bbeb7e0daec287f782a3a8ea6562988f3 100644 (file)
@@ -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