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.
This commit is contained in:
Thomas Goyne 2011-10-24 20:17:40 +00:00
parent 374a43cd8b
commit 5cb7bdcbaf

View file

@ -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);
}