From 5cb7bdcbaf7d9db92006425a3182a9e94f43630c Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 24 Oct 2011 20:17:40 +0000 Subject: [PATCH] Set the event object for colour button click events. Fixes a bug where colour buttons in automation dialogs were completely broken. Originally committed to SVN as r5767. --- aegisub/src/colour_button.cpp | 1 + 1 file changed, 1 insertion(+) 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); }