Fix SCH_SHAPE rotation direction.

This commit is contained in:
Alex Shvartzkop 2023-11-04 17:10:10 +03:00
parent 48855ebe40
commit b2825663be
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ void SCH_SHAPE::MirrorVertically( int aCenter )
void SCH_SHAPE::Rotate( const VECTOR2I& aCenter )
{
rotate( aCenter, -ANGLE_90 );
rotate( aCenter, ANGLE_90 );
}

View File

@ -904,7 +904,7 @@ int SCH_EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent )
case SCH_SHAPE_T:
case SCH_TEXTBOX_T:
for( int i = 0; clockwise ? i < 1 : i < 3; ++i )
for( int i = 0; clockwise ? i < 3 : i < 1; ++i )
head->Rotate( rotPoint );
break;