Fix discrepancy between ASCII and CSV fp pos files

(based on 570ea62b64)

Fixes https://gitlab.com/kicad/code/kicad/issues/3897
This commit is contained in:
Ian McInerney 2020-03-30 10:42:15 +01:00
parent f8be7e1f57
commit 7a913844e2
1 changed files with 3 additions and 0 deletions

View File

@ -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;