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:
parent
9fe2c4b21f
commit
97b0b20a65
|
@ -684,10 +684,11 @@ void DIALOG_EDIT_COMPONENT_IN_LIBRARY::OnSizeGrid( wxSizeEvent& event )
|
||||||
|
|
||||||
void DIALOG_EDIT_COMPONENT_IN_LIBRARY::syncControlStates( bool aIsAlias )
|
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 )
|
if( aIsAlias )
|
||||||
m_PanelFootprintFilter->Hide();
|
m_NoteBook->RemovePage( 1 );
|
||||||
else
|
|
||||||
m_PanelFootprintFilter->Show();
|
|
||||||
|
|
||||||
bSizerLowerBasicPanel->Show( !aIsAlias );
|
bSizerLowerBasicPanel->Show( !aIsAlias );
|
||||||
bButtonSize->Show( !aIsAlias );
|
bButtonSize->Show( !aIsAlias );
|
||||||
|
|
Loading…
Reference in New Issue