X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9440c3d0e95d3ee506a3190c8b31e82d2c98a719..a9102b3671a45d116d781b0c8e90d2e9a84fbdcb:/include/wx/textctrl.h diff --git a/include/wx/textctrl.h b/include/wx/textctrl.h index 9d66c98012..29806404bd 100644 --- a/include/wx/textctrl.h +++ b/include/wx/textctrl.h @@ -477,7 +477,7 @@ typedef void (wxEvtHandler::*wxTextUrlEventFunction)(wxTextUrlEvent&); #define wxTextEventHandler(func) wxCommandEventHandler(func) #define wxTextUrlEventHandler(func) \ - (wxObjectEventFunction)wxStaticCastEvent(wxTextUrlEventFunction, &func) + (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxTextUrlEventFunction, &func) #define wx__DECLARE_TEXTEVT(evt, id, fn) \ wx__DECLARE_EVT1(wxEVT_COMMAND_TEXT_ ## evt, id, wxTextEventHandler(fn))