Keep schematic text upright (especially when opening v6 schematic).

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17082
This commit is contained in:
Alex Shvartzkop 2024-02-28 18:25:05 +03:00
parent b4e993e6e8
commit bec068324e
1 changed files with 1 additions and 1 deletions

View File

@ -4006,7 +4006,7 @@ SCH_TEXT* SCH_IO_KICAD_SEXPR_PARSER::parseSchText()
case T_at:
text->SetPosition( parseXY() );
text->SetTextAngle( EDA_ANGLE( parseDouble( "text angle" ), DEGREES_T ) );
text->SetTextAngle( EDA_ANGLE( parseDouble( "text angle" ), DEGREES_T ).KeepUpright() );
if( SCH_LABEL_BASE* label = dynamic_cast<SCH_LABEL_BASE*>( text.get() ) )
{