X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5dbe15d0bacde245539f54c4d97af6b4696f01f..f8b1df0b15f843b8f47efb9bee38f1de0fa95020:/include/wx/accel.h diff --git a/include/wx/accel.h b/include/wx/accel.h index 025b51b375..ee2e3a08ad 100644 --- a/include/wx/accel.h +++ b/include/wx/accel.h @@ -68,7 +68,8 @@ public: wxAcceleratorEntry& operator=(const wxAcceleratorEntry& entry) { - Set(entry.m_flags, entry.m_keyCode, entry.m_command, entry.m_item); + if (&entry != this) + Set(entry.m_flags, entry.m_keyCode, entry.m_command, entry.m_item); return *this; }