X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/674ac8b919eecbc201b5f23b470a567cd0565e10..0046ff7c4fd087d84641a9a3e0c40a54035b8b2c:/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