X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d1e418eaea09da4d74cc0d2b9d6bb1f9decbfa49..40bd6154f1476dbe598c60b4760bbf2fe0d9ab0f:/include/wx/msw/statbmp.h?ds=inline 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;