X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2df7be7f2cca699a02ee0c9ce69de9bfe6b0922f..752c7d6bbdf97037c9a2bf20625b47951b76aa4a:/include/wx/gtk/statbmp.h diff --git a/include/wx/gtk/statbmp.h b/include/wx/gtk/statbmp.h index 7f902acf83..cfedc1c502 100644 --- a/include/wx/gtk/statbmp.h +++ b/include/wx/gtk/statbmp.h @@ -67,7 +67,12 @@ public: const wxBitmap& GetBitmap() const { return m_bitmap; } // for compatibility with wxMSW - wxIcon& GetIcon(); + const wxIcon& GetIcon() const + { + // don't use wxDynamicCast, icons and bitmaps are really the same thing + // in wxGTK + return (const wxIcon &)m_bitmap; + } private: wxBitmap m_bitmap;