Don't double-flip justification. (The transform already flips it.)
Fixes https://gitlab.com/kicad/code/kicad/issues/11673
This commit is contained in:
parent
7c83c78afe
commit
c337c12410
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue