Eeschema, DIALOG_EDIT_ONE_FIELD: fix incorrect behavior for footprint field,
when initialized from the footprint viewer. Fixes #4609 https://gitlab.com/kicad/code/kicad/issues/4609
This commit is contained in:
parent
7876bab0e0
commit
a29b3eb017
|
@ -143,6 +143,9 @@ void DIALOG_EDIT_ONE_FIELD::OnTextValueSelectButtonClick( wxCommandEvent& aEvent
|
||||||
|
|
||||||
if( frame->ShowModal( &fpid, this ) )
|
if( frame->ShowModal( &fpid, this ) )
|
||||||
{
|
{
|
||||||
|
if( m_StyledTextCtrl->IsShown() )
|
||||||
|
m_StyledTextCtrl->SetValue( fpid );
|
||||||
|
else
|
||||||
m_TextCtrl->SetValue( fpid );
|
m_TextCtrl->SetValue( fpid );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -980,7 +980,7 @@ void DIALOG_PAD_PROPERTIES::OnUpdateUI( wxUpdateUIEvent& event )
|
||||||
m_rbCopperLayersSel->Enable( ii != 4 );
|
m_rbCopperLayersSel->Enable( ii != 4 );
|
||||||
|
|
||||||
// Adjust for any shown/hidden elements
|
// Adjust for any shown/hidden elements
|
||||||
for( int i = 0; i < m_notebook->GetPageCount(); ++i )
|
for( size_t i = 0; i < m_notebook->GetPageCount(); ++i )
|
||||||
m_notebook->GetPage( i )->Layout();
|
m_notebook->GetPage( i )->Layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue