From 2ff3fac7b316be1a6901d0fc9fc41093d772122c Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 30 Oct 2022 15:02:52 -0400 Subject: [PATCH] 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 c0f8810759552250761b2a07d7746afc328411d0) --- common/widgets/bitmap_toggle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );