X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf2810aa394d47a43489d6138edf0497c389a22c..f54e5c1a4f6952c62ed4480f7d26feddc20f98ba:/include/wx/windowid.h diff --git a/include/wx/windowid.h b/include/wx/windowid.h index 4b2e3e171c..e16b4534ab 100644 --- a/include/wx/windowid.h +++ b/include/wx/windowid.h @@ -72,7 +72,8 @@ public: wxWindowIDRef& operator=(const wxWindowIDRef& id) { - Assign(id.m_id); + if (&id != this) + Assign(id.m_id); return *this; }