From 8277aeec7d4194f7b46998ee5c66875546b58368 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sun, 25 Aug 2019 21:54:09 -0700 Subject: [PATCH] eagle: Set module-relative position of ref/val We need to set the footprint local coordinates of the footprint reference and value fields at instantiation separately from the TEXT_DIVERS elements. Fixes: lp:1829727 * https://bugs.launchpad.net/kicad/+bug/1829727 (cherry picked from commit a43a228f785b49b576a28306d2b0bf9997635c4f) --- pcbnew/eagle_plugin.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/eagle_plugin.cpp b/pcbnew/eagle_plugin.cpp index 90f25389e9..f8aae26695 100644 --- a/pcbnew/eagle_plugin.cpp +++ b/pcbnew/eagle_plugin.cpp @@ -1098,6 +1098,10 @@ void EAGLE_PLUGIN::loadElements( wxXmlNode* aElements ) orientModuleAndText( m, e, nameAttr, valueAttr ); + // Set the local coordinates for the footprint text items + m->Reference().SetLocalCoord(); + m->Value().SetLocalCoord(); + // Get next element element = element->GetNext(); }