Use updated value when checking for empty.

Fixes: lp:1813640
* https://bugs.launchpad.net/kicad/+bug/1813640
This commit is contained in:
Jeff Young 2019-01-30 16:28:40 +00:00
parent b3319d29c1
commit 19c9ae7ecb
1 changed files with 1 additions and 1 deletions

View File

@ -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.
// Check if this is the desired behavior.
if( !libField->GetText().empty() || m_resetEmpty->IsChecked() )
if( !fieldValue.empty() || m_resetEmpty->IsChecked() )
field->SetText( fieldValue );
if( m_resetVisibility->IsChecked() )