PCB_CALCULATOR_FRAME: fix missing calls to Layout() after widgets modifications.

Fixes #7858
https://gitlab.com/kicad/code/kicad/issues/7858
This commit is contained in:
jean-pierre charras 2021-03-10 14:07:40 +01:00
parent d4231d8e9f
commit 2d609a795d
1 changed files with 3 additions and 0 deletions

View File

@ -206,9 +206,12 @@ void PCB_CALCULATOR_FRAME::OnUpdateUI( wxUpdateUIEvent& event )
ToleranceSelection( m_rbToleranceSelection->GetSelection() );
m_viaBitmap->SetBitmap( KiBitmap( viacalc_xpm ) );
m_panelViaSize->Layout();
m_attenuatorBitmap->SetBitmap( *m_currAttenuator->m_SchBitMap );
m_bitmapRegul3pins->SetBitmap( KiBitmap( regul_3pins_xpm ) );
m_bitmapRegul4pins->SetBitmap( KiBitmap( regul_xpm ) );
m_panelRegulators->Layout();
m_attenuatorBitmap->GetParent()->Layout();
m_attenuatorBitmap->GetParent()->Refresh();