Generate wxEVT_SPINCTRL of the correct wxSpinEvent type.
Handlers for this event expect to get wxSpinEvent but wxMSW, wxGTK1 and wxQT sent an object of base wxCommandEvent class which resulted in invalid memory access in the handlers when using the derived class methods such as Veto(). Closes #16948.
This commit is contained in:
@@ -179,8 +179,6 @@ wxDEFINE_EVENT( wxEVT_VLBOX, wxCommandEvent );
|
||||
wxDEFINE_EVENT( wxEVT_COMBOBOX, wxCommandEvent );
|
||||
wxDEFINE_EVENT( wxEVT_TOOL_RCLICKED, wxCommandEvent );
|
||||
wxDEFINE_EVENT( wxEVT_TOOL_ENTER, wxCommandEvent );
|
||||
wxDEFINE_EVENT( wxEVT_SPINCTRL, wxCommandEvent );
|
||||
wxDEFINE_EVENT( wxEVT_SPINCTRLDOUBLE, wxCommandEvent );
|
||||
wxDEFINE_EVENT( wxEVT_TOOL_DROPDOWN, wxCommandEvent );
|
||||
wxDEFINE_EVENT( wxEVT_COMBOBOX_DROPDOWN, wxCommandEvent);
|
||||
wxDEFINE_EVENT( wxEVT_COMBOBOX_CLOSEUP, wxCommandEvent);
|
||||
|
Reference in New Issue
Block a user