X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e82d270881b05d6243ec925f6f0e73914eb7edf..80cc5fc7ad102221a1ce9e160eac3c29a0586664:/include/wx/vector.h diff --git a/include/wx/vector.h b/include/wx/vector.h index 898a0cc399..64b37b9885 100644 --- a/include/wx/vector.h +++ b/include/wx/vector.h @@ -230,8 +230,11 @@ public: wxVector& operator=(const wxVector& vb) { - clear(); - Copy(vb); + if (this != &vb) + { + clear(); + Copy(vb); + } return *this; }