Fix symbol field positions in legacy schematics.

This commit is contained in:
Alex Shvartzkop 2024-05-08 18:06:02 +03:00
parent 482cf659a7
commit 1bde100ff7
1 changed files with 4 additions and 0 deletions

View File

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