Use updated value when checking for empty.
Fixes: lp:1813640 * https://bugs.launchpad.net/kicad/+bug/1813640
This commit is contained in:
parent
b3319d29c1
commit
19c9ae7ecb
|
@ -197,7 +197,7 @@ void DIALOG_UPDATE_FIELDS::updateFields( SCH_COMPONENT* aComponent )
|
||||||
|
|
||||||
// If the library field is empty an update would clear an existing entry.
|
// If the library field is empty an update would clear an existing entry.
|
||||||
// Check if this is the desired behavior.
|
// Check if this is the desired behavior.
|
||||||
if( !libField->GetText().empty() || m_resetEmpty->IsChecked() )
|
if( !fieldValue.empty() || m_resetEmpty->IsChecked() )
|
||||||
field->SetText( fieldValue );
|
field->SetText( fieldValue );
|
||||||
|
|
||||||
if( m_resetVisibility->IsChecked() )
|
if( m_resetVisibility->IsChecked() )
|
||||||
|
|
Loading…
Reference in New Issue