From 19c9ae7ecbce8ec8308e7cc343184ad8b195d4ba Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 30 Jan 2019 16:28:40 +0000 Subject: [PATCH] Use updated value when checking for empty. Fixes: lp:1813640 * https://bugs.launchpad.net/kicad/+bug/1813640 --- eeschema/dialogs/dialog_update_fields.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_update_fields.cpp b/eeschema/dialogs/dialog_update_fields.cpp index 9b79abfa6d..68a34c229f 100644 --- a/eeschema/dialogs/dialog_update_fields.cpp +++ b/eeschema/dialogs/dialog_update_fields.cpp @@ -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() )