Don't fix the visibility icon size or it will never scale properly
Related https://gitlab.com/kicad/code/kicad/-/issues/11880
(cherry picked from commit c0f8810759
)
This commit is contained in:
parent
08452433e8
commit
2ff3fac7b3
|
@ -44,7 +44,7 @@ BITMAP_TOGGLE::BITMAP_TOGGLE( wxWindow *aParent, wxWindowID aId, const wxBitmap&
|
||||||
|
|
||||||
const wxBitmap& bitmap = aChecked ? m_checked_bitmap : m_unchecked_bitmap;
|
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 );
|
sizer->Add( m_bitmap, 0, 0 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue