Don't double-flip justification. (The transform already flips it.)

Fixes https://gitlab.com/kicad/code/kicad/issues/11673
This commit is contained in:
Jeff Young 2022-09-05 20:30:16 +01:00
parent 7c83c78afe
commit c337c12410
1 changed files with 0 additions and 14 deletions

View File

@ -831,20 +831,6 @@ int SCH_EDIT_TOOL::Mirror( const TOOL_EVENT& aEvent )
else
symbol->SetOrientation( SYM_MIRROR_Y );
// If the user asks to mirror the symbol, don't keep their text in the
// same place
symbol->RunOnChildren(
[&]( SCH_ITEM* aChild )
{
if( SCH_FIELD* field = dyn_cast<SCH_FIELD*>( aChild ) )
{
if( vertical )
field->SetVertJustify( TO_VJUSTIFY( -field->GetVertJustify() ) );
else
field->SetHorizJustify( TO_HJUSTIFY( -field->GetHorizJustify() ) );
}
} );
symbol->ClearFieldsAutoplaced();
break;
}