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:
Wayne Stambaugh 2016-04-29 12:05:08 -04:00
parent 3c8bed9c92
commit 72f19ded75
1 changed files with 2 additions and 5 deletions

View File

@ -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();
}