diff --git a/aegisub/src/colour_button.cpp b/aegisub/src/colour_button.cpp index 9456472b0..a2822032c 100644 --- a/aegisub/src/colour_button.cpp +++ b/aegisub/src/colour_button.cpp @@ -80,6 +80,7 @@ void ColourButton::SetColour(wxColour col) { // when the color has changed wxCommandEvent evt(wxEVT_COMMAND_BUTTON_CLICKED, GetId()); evt.SetClientData(this); + evt.SetEventObject(this); AddPendingEvent(evt); }