From 7a913844e2b3d23912f6f87989ac34b61901e208 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Mon, 30 Mar 2020 10:42:15 +0100 Subject: [PATCH] Fix discrepancy between ASCII and CSV fp pos files (based on 570ea62b64dd95dfd3d5a3a851027fe3ba8e755c) Fixes https://gitlab.com/kicad/code/kicad/issues/3897 --- pcbnew/exporters/gen_footprints_placefile.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/exporters/gen_footprints_placefile.cpp b/pcbnew/exporters/gen_footprints_placefile.cpp index 4f6e495036..e4e579f952 100644 --- a/pcbnew/exporters/gen_footprints_placefile.cpp +++ b/pcbnew/exporters/gen_footprints_placefile.cpp @@ -533,6 +533,9 @@ int PCB_EDIT_FRAME::DoGenFootprintsPositionFile( const wxString& aFullFileName, LAYER_NUM layer = list[ii].m_Module->GetLayer(); wxASSERT( layer == F_Cu || layer == B_Cu ); + if( layer == B_Cu ) + footprint_pos.x = - footprint_pos.x; + wxString line = "\"" + list[ii].m_Reference; line << "\"" << csv_sep; line << "\"" << list[ii].m_Value;