X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a30e7029749646348aaacf61da9ed66743d77a40..c6ea1fdaf924be4ee49a19d12f76e4fcd257bb0a:/include/wx/generic/statbmpg.h diff --git a/include/wx/generic/statbmpg.h b/include/wx/generic/statbmpg.h index 010ec66012..6948c9d521 100644 --- a/include/wx/generic/statbmpg.h +++ b/include/wx/generic/statbmpg.h @@ -45,9 +45,9 @@ public: virtual wxBitmap GetBitmap() const { return m_bitmap; } - virtual void SetIcon(const wxIcon& icon) - { - m_bitmap.CopyFromIcon(icon); + virtual void SetIcon(const wxIcon& icon) + { + m_bitmap.CopyFromIcon(icon); SetInitialSize(GetBitmapSize()); Refresh(); } @@ -59,9 +59,9 @@ public: private: - wxSize GetBitmapSize() + wxSize GetBitmapSize() { - return m_bitmap.Ok() ? wxSize(m_bitmap.GetWidth(), m_bitmap.GetHeight()) + return m_bitmap.IsOk() ? wxSize(m_bitmap.GetWidth(), m_bitmap.GetHeight()) : wxSize(16, 16); // this is completely arbitrary }