]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/any.h
Generate wxPropertyGrid splitter (column divider) events: wxEVT_PG_COL_BEGIN_DRAG...
[wxWidgets.git] / include / wx / any.h
index b99e84bb99ae987a5caf0d942eb5f576f69cde4c..26f36e7c68a7f6a8bab6b91fd9fa5dd39602475a 100644 (file)
@@ -663,7 +663,8 @@ public:
     */
     wxAny& operator=(const wxAny &any)
     {
-        AssignAny(any);
+        if (this != &any)
+            AssignAny(any);
         return *this;
     }