Don't rotate fields if their parent is selected.
Fixes https://gitlab.com/kicad/code/kicad/issues/7410
This commit is contained in:
parent
065a16b48c
commit
62254309b0
|
@ -561,6 +561,17 @@ int SCH_EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent )
|
|||
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
|
||||
{
|
||||
item->Rotate( rotPoint );
|
||||
|
|
Loading…
Reference in New Issue