diff --git a/include/wx/event.h b/include/wx/event.h index 2b0ae04730..ec45c09279 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -743,7 +743,7 @@ public: virtual wxEvent *Clone() const { return new wxMouseEvent(*this); } - wxMouseEvent& operator=(const wxMouseEvent& event) { Assign(event); } + wxMouseEvent& operator=(const wxMouseEvent& event) { Assign(event); return *this; } public: wxCoord m_x, m_y;