Fix properties dialog bug in symbol library editor.

Remove unused panel rather than calling Hide() method which draws the
hidden page as a background of the shown page.
This commit is contained in:
Jean-Pierre Charras 2019-11-08 15:53:42 -05:00 committed by Wayne Stambaugh
parent 9fe2c4b21f
commit 97b0b20a65
1 changed files with 4 additions and 3 deletions

View File

@ -684,10 +684,11 @@ void DIALOG_EDIT_COMPONENT_IN_LIBRARY::OnSizeGrid( wxSizeEvent& event )
void DIALOG_EDIT_COMPONENT_IN_LIBRARY::syncControlStates( bool aIsAlias )
{
// Remove the not wanted notebook page.
// *Do not use* Hide(), it is suitable to hide a widget,
// but it is not suitable to hide a notebook page (that is not a widget)
if( aIsAlias )
m_PanelFootprintFilter->Hide();
else
m_PanelFootprintFilter->Show();
m_NoteBook->RemovePage( 1 );
bSizerLowerBasicPanel->Show( !aIsAlias );
bButtonSize->Show( !aIsAlias );