X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2df7be7f2cca699a02ee0c9ce69de9bfe6b0922f..0868079c33c321955e08e34515a60cf25dee6ca6:/include/wx/gtk1/statbmp.h diff --git a/include/wx/gtk1/statbmp.h b/include/wx/gtk1/statbmp.h index 7f902acf83..cfedc1c502 100644 --- a/include/wx/gtk1/statbmp.h +++ b/include/wx/gtk1/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;