X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d1e418eaea09da4d74cc0d2b9d6bb1f9decbfa49..cf1a9b45c7b70f217d3cc282ab77df8feaadcdeb:/include/wx/msw/statbmp.h?ds=sidebyside diff --git a/include/wx/msw/statbmp.h b/include/wx/msw/statbmp.h index 3715b09f7c..fb294bbc60 100644 --- a/include/wx/msw/statbmp.h +++ b/include/wx/msw/statbmp.h @@ -51,8 +51,8 @@ public: virtual ~wxStaticBitmap() { Free(); } - void SetIcon(const wxIcon& icon) { SetImage(icon); } - void SetBitmap(const wxBitmap& bitmap) { SetImage(bitmap); } + void SetIcon(const wxIcon& icon) { SetImage(&icon); } + void SetBitmap(const wxBitmap& bitmap) { SetImage(&bitmap); } // assert failure is provoked by an attempt to get an icon from bitmap or // vice versa @@ -79,7 +79,7 @@ protected: // TRUE if icon/bitmap is valid bool ImageIsOk() const; - void SetImage(const wxGDIImage& image); + void SetImage(const wxGDIImage* image); // we can have either an icon or a bitmap bool m_isIcon;