diff --git a/common/widgets/bitmap_toggle.cpp b/common/widgets/bitmap_toggle.cpp index 90af3c033c..23d8066f3f 100644 --- a/common/widgets/bitmap_toggle.cpp +++ b/common/widgets/bitmap_toggle.cpp @@ -44,7 +44,7 @@ BITMAP_TOGGLE::BITMAP_TOGGLE( wxWindow *aParent, wxWindowID aId, const wxBitmap& const wxBitmap& bitmap = aChecked ? m_checked_bitmap : m_unchecked_bitmap; - m_bitmap = new wxStaticBitmap( this, aId, bitmap, wxDefaultPosition, bitmap.GetSize() ); + m_bitmap = new wxStaticBitmap( this, aId, bitmap, wxDefaultPosition ); sizer->Add( m_bitmap, 0, 0 );