]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/vector.h
document column reordering in wxListCtrl; fix confusion between GetColumnOrder()...
[wxWidgets.git] / include / wx / vector.h
index 898a0cc3996e7c77fc61ccd82797b217b697a0bd..64b37b9885c5e371a0665d9ff30a2e9a32fe7392 100644 (file)
@@ -230,8 +230,11 @@ public:
 
     wxVector& operator=(const wxVector& vb)
     {
-        clear();
-        Copy(vb);
+        if (this != &vb)
+        {
+            clear();
+            Copy(vb);
+        }
         return *this;
     }