From 28a6ca1e23904b080ef34cf9bc1fed91d2191cc9 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 12 Mar 2017 17:04:42 +0100 Subject: [PATCH] Eeschema: fix wrong position of symbol fields when adding a symbol in a schematic Fixes: lp:1665718 https://bugs.launchpad.net/kicad/+bug/1665718 --- eeschema/sch_component.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_component.cpp b/eeschema/sch_component.cpp index 761a710564..0182a3cb9e 100644 --- a/eeschema/sch_component.cpp +++ b/eeschema/sch_component.cpp @@ -172,9 +172,11 @@ SCH_COMPONENT::SCH_COMPONENT( LIB_PART& aPart, SCH_SHEET_PATH* sheet, int unit, schField = AddField( fld ); } - schField->SetTextPos( m_Pos + it->GetTextPos() ); schField->ImportValues( *it ); schField->SetText( it->GetText() ); + + // Now the field is initialized, place it to the right position: + schField->SetTextPos( m_Pos + it->GetTextPos() ); } wxString msg = aPart.GetReferenceField().GetText();