Fix value field editing bug in component library editor. (fixes lp:1576363)
* Allow editing value field for power components in the component library editor.
This commit is contained in:
parent
3c8bed9c92
commit
72f19ded75
|
@ -222,11 +222,8 @@ DIALOG_LIB_EDIT_ONE_FIELD::DIALOG_LIB_EDIT_ONE_FIELD( SCH_BASE_FRAME* aParent,
|
|||
{
|
||||
m_fieldId = aField->GetId();
|
||||
|
||||
LIB_PART* part = aField->GetParent();
|
||||
|
||||
wxASSERT_MSG( part, wxT( "LIB_FIELD has no LIB_PART as parent." ) );
|
||||
|
||||
m_isPower = part->IsPower();
|
||||
// When in the library editor, power components can be renamed.
|
||||
m_isPower = false;
|
||||
init();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue