From 06ff56325c818caaeb1ec58ff9f8c8ca3b6d1249 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 28 Jun 2018 05:58:22 -0700 Subject: [PATCH] eeschema: Fix assignment from d30ac2967 --- eeschema/libfield.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eeschema/libfield.cpp b/eeschema/libfield.cpp index cb9fbc6209..0231644b09 100644 --- a/eeschema/libfield.cpp +++ b/eeschema/libfield.cpp @@ -64,8 +64,7 @@ void LIB_EDIT_FRAME::EditField( LIB_FIELD* aField ) if( dlg.ShowQuasiModal() != wxID_OK ) return; - newFieldValue = dlg.GetText(); - LIB_ID::FixIllegalChars( newFieldValue, LIB_ID::ID_SCH ); + newFieldValue = LIB_ID::FixIllegalChars( dlg.GetText(), LIB_ID::ID_SCH ); wxString oldFieldValue = aField->GetFullText( m_unit ); bool renamed = aField->GetId() == VALUE && newFieldValue != oldFieldValue;