X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cdb11cb99e14b18bc284fce01ccbd18fa9c56cb7..83666e99093aa0b65c497f7e6c75d98a875667cc:/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(); } }