eeschema: Fix issue when saving labels having more than 50 chars

These labels (or global label...) were saved with a erroneous angle.
Fixes #12151
https://gitlab.com/kicad/code/kicad/issues/12151
This commit is contained in:
jean-pierre charras 2022-08-05 13:33:35 +02:00
parent 5f00847a86
commit 411d57396c
1 changed files with 1 additions and 1 deletions

View File

@ -1463,7 +1463,7 @@ void SCH_SEXPR_PLUGIN::saveText( SCH_TEXT* aText, int aNestLevel )
m_out->Print( aNestLevel + 1, "(at %s %s %s)",
FormatInternalUnits( aText->GetPosition().x ).c_str(),
FormatInternalUnits( aText->GetPosition().y ).c_str(),
FormatAngle( aText->GetTextAngle() ).c_str() );
FormatAngle( angle * 10.0 ).c_str() );
}
if( aText->GetFieldsAutoplaced() != FIELDS_AUTOPLACED_NO )