X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cdb11cb99e14b18bc284fce01ccbd18fa9c56cb7..73b51ea4364c84af8b4cc4c5c79b4a9c41c1cf7d:/src/generic/buttonbar.cpp?ds=sidebyside diff --git a/src/generic/buttonbar.cpp b/src/generic/buttonbar.cpp index 091dfd01b1..c05ef6385b 100644 --- a/src/generic/buttonbar.cpp +++ b/src/generic/buttonbar.cpp @@ -493,7 +493,7 @@ void wxButtonToolBar::OnCommand(wxCommandEvent& event) } // paints a border -void wxButtonToolBar::OnPaint(wxPaintEvent& event) +void wxButtonToolBar::OnPaint(wxPaintEvent& WXUNUSED(event)) { wxPaintDC dc(this); @@ -549,7 +549,7 @@ void wxButtonToolBar::OnLeftUp(wxMouseEvent& event) { wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, tool->GetId()); event.SetEventObject(tool->GetButton()); - if (!ProcessEvent(event)) + if (!GetEventHandler()->ProcessEvent(event)) event.Skip(); } }