]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/windowid.h
another fix for wxUSE_DRAG_AND_DROP==0 build
[wxWidgets.git] / include / wx / windowid.h
index 4b2e3e171c42b5ea8ddac2e92ca361fd4e8fdde4..e16b4534abe50f7cc078d502e0ac523974ef2b88 100644 (file)
@@ -72,7 +72,8 @@ public:
 
     wxWindowIDRef& operator=(const wxWindowIDRef& id)
     {
-        Assign(id.m_id);
+        if (&id != this)
+            Assign(id.m_id);
         return *this;
     }