PCB_IO_KICAD_SEXPR_PARSER::parseEDA_TEXT(): ensure texts are not mirrored

When not specified as mirrored, texts must be not mirrored.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17955
This commit is contained in:
jean-pierre charras 2024-05-06 10:53:39 +02:00
parent 5475359d00
commit f6d0e17c8b
1 changed files with 4 additions and 1 deletions

View File

@ -497,9 +497,12 @@ void PCB_IO_KICAD_SEXPR_PARSER::parseEDA_TEXT( EDA_TEXT* aText )
wxCHECK_RET( CurTok() == T_effects,
wxT( "Cannot parse " ) + GetTokenString( CurTok() ) + wxT( " as EDA_TEXT." ) );
// These are not written out if center/center, so we have to make sure we start that way.
// These are not written out if center/center and/or no mirror,
// so we have to make sure we start that way.
// (these parameters will be set in T_justify section, when existing)
aText->SetHorizJustify( GR_TEXT_H_ALIGN_CENTER );
aText->SetVertJustify( GR_TEXT_V_ALIGN_CENTER );
aText->SetMirrored( false );
// In version 20210606 the notation for overbars was changed from `~...~` to `~{...}`.
// We need to convert the old syntax to the new one.