X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/674ac8b919eecbc201b5f23b470a567cd0565e10..21e052699d74ff3443002e515fb30f3a657b105c:/include/wx/msw/control.h?ds=sidebyside 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