diff --git a/src/common/ctrlcmn.cpp b/src/common/ctrlcmn.cpp index 6549e59461..c721565753 100644 --- a/src/common/ctrlcmn.cpp +++ b/src/common/ctrlcmn.cpp @@ -620,24 +620,4 @@ wxString wxControlBase::Ellipsize(const wxString& label, const wxDC& dc, return ret; } -// ---------------------------------------------------------------------------- -// wxStaticBitmap -// ---------------------------------------------------------------------------- - -#if wxUSE_STATBMP - -wxStaticBitmapBase::~wxStaticBitmapBase() -{ - // this destructor is required for Darwin -} - -wxSize wxStaticBitmapBase::DoGetBestSize() const -{ - // the fall back size is completely arbitrary - const wxBitmap bmp = GetBitmap(); - return bmp.IsOk() ? bmp.GetScaledSize() : wxSize(16, 16); -} - -#endif // wxUSE_STATBMP - #endif // wxUSE_CONTROLS diff --git a/src/common/statbmpcmn.cpp b/src/common/statbmpcmn.cpp index be4b210721..d2c4f8c26b 100644 --- a/src/common/statbmpcmn.cpp +++ b/src/common/statbmpcmn.cpp @@ -80,4 +80,20 @@ wxCONSTRUCTOR_5( wxStaticBitmap, wxWindow*, Parent, wxWindowID, Id, \ bitmap */ +// ---------------------------------------------------------------------------- +// wxStaticBitmap +// ---------------------------------------------------------------------------- + +wxStaticBitmapBase::~wxStaticBitmapBase() +{ + // this destructor is required for Darwin +} + +wxSize wxStaticBitmapBase::DoGetBestSize() const +{ + // the fall back size is completely arbitrary + const wxBitmap bmp = GetBitmap(); + return bmp.IsOk() ? bmp.GetScaledSize() : wxSize(16, 16); +} + #endif // wxUSE_STATBMP