]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/windowid.h
Complete rewrite of DoDrawBitmap() and DoBlit().
[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;
     }