Browse Source

Fix symbol field positions in legacy schematics.

fusion360
Alex Shvartzkop 2 years ago
parent
commit
1bde100ff7
  1. 4
      eeschema/sch_io/kicad_legacy/sch_io_kicad_legacy.cpp

4
eeschema/sch_io/kicad_legacy/sch_io_kicad_legacy.cpp

@ -1285,6 +1285,10 @@ SCH_SYMBOL* SCH_IO_KICAD_LEGACY::loadSymbol( LINE_READER& aReader )
VECTOR2I pos;
pos.x = schIUScale.MilsToIU( parseInt( aReader, line, &line ) );
pos.y = schIUScale.MilsToIU( parseInt( aReader, line, &line ) );
// Y got inverted in symbol coordinates
pos.y = -( pos.y - symbol->GetY() ) + symbol->GetY();
int size = schIUScale.MilsToIU( parseInt( aReader, line, &line ) );
int attributes = parseHex( aReader, line, &line );

Loading…
Cancel
Save