]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/fontutil.h
wxOSX build fix after wxTextEntry::GetValue() renaming to DoGetValue()
[wxWidgets.git] / include / wx / fontutil.h
index 3efd2d1e2c9ad86f19d31558b07d036708442df9..4c4b6a7bbeb7e0daec287f782a3a8ea6562988f3 100644 (file)
@@ -143,8 +143,11 @@ public:
 
     wxNativeFontInfo& operator=(const wxNativeFontInfo& info)
     {
-        Free();
-        Init(info);
+        if (this != &info)
+        {
+            Free();
+            Init(info);
+        }
         return *this;
     }
 #endif // wxUSE_PANGO