Fix rotation of selection in schematic.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17921
This commit is contained in:
Jeff Young 2024-05-03 21:13:51 +01:00
parent 8463bd59b7
commit 44717f927c
1 changed files with 2 additions and 2 deletions

View File

@ -876,7 +876,7 @@ int SCH_EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent )
{
SCH_FIELD* field = static_cast<SCH_FIELD*>( item );
field->Rotate( rotPoint, false );
field->Rotate( rotPoint, true );
if( field->GetTextAngle().IsHorizontal() )
field->SetTextAngle( ANGLE_VERTICAL );
@ -889,7 +889,7 @@ int SCH_EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent )
}
else
{
item->Rotate( rotPoint, false );
item->Rotate( rotPoint, true );
}
}