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

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17082


(cherry picked from commit bec068324e)
This commit is contained in:
Alex Shvartzkop 2024-02-28 18:25:05 +03:00 committed by GitLab
parent 9a9d6f2afb
commit 0314540fdb
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -4037,7 +4037,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() ) )
{