Don't rotate fields if their parent is selected.

Fixes https://gitlab.com/kicad/code/kicad/issues/7410
This commit is contained in:
Jeff Young 2021-02-04 00:04:54 +00:00
parent 065a16b48c
commit 62254309b0
1 changed files with 11 additions and 0 deletions

View File

@ -561,6 +561,17 @@ int SCH_EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent )
pin->Rotate( sheet->GetBoundingBox().GetCenter() ); pin->Rotate( sheet->GetBoundingBox().GetCenter() );
} }
} }
else if( item->Type() == SCH_FIELD_T )
{
if( item->GetParent()->IsSelected() )
{
// parent will rotate us
}
else
{
item->Rotate( rotPoint );
}
}
else else
{ {
item->Rotate( rotPoint ); item->Rotate( rotPoint );