X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/674ac8b919eecbc201b5f23b470a567cd0565e10..bfb9ee966d5d1f29e49f38e340812ade4b3cc956:/include/wx/msw/control.h diff --git a/include/wx/msw/control.h b/include/wx/msw/control.h index f1ce9942e1..9ecbab3dfb 100644 --- a/include/wx/msw/control.h +++ b/include/wx/msw/control.h @@ -120,8 +120,8 @@ private: #if WXWIN_COMPATIBILITY inline void wxControl::Callback(const wxFunction f) { m_callback = f; }; - inline wxFont& wxControl::GetLabelFont() const { return GetFont(); } - inline wxFont& wxControl::GetButtonFont() const { return GetFont(); } + inline wxFont& wxControl::GetLabelFont() const { return (wxFont &)GetFont(); } + inline wxFont& wxControl::GetButtonFont() const { return (wxFont &)GetFont(); } inline void wxControl::SetLabelFont(const wxFont& font) { SetFont(font); } inline void wxControl::SetButtonFont(const wxFont& font) { SetFont(font); } #endif // WXWIN_COMPATIBILITY