From c337c1241001e0b0604ba23e53ca637fc3334eb8 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 5 Sep 2022 20:30:16 +0100 Subject: [PATCH] Don't double-flip justification. (The transform already flips it.) Fixes https://gitlab.com/kicad/code/kicad/issues/11673 --- eeschema/tools/sch_edit_tool.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/eeschema/tools/sch_edit_tool.cpp b/eeschema/tools/sch_edit_tool.cpp index 1961fe7a17..7a7401de3a 100644 --- a/eeschema/tools/sch_edit_tool.cpp +++ b/eeschema/tools/sch_edit_tool.cpp @@ -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( aChild ) ) - { - if( vertical ) - field->SetVertJustify( TO_VJUSTIFY( -field->GetVertJustify() ) ); - else - field->SetHorizJustify( TO_HJUSTIFY( -field->GetHorizJustify() ) ); - } - } ); - symbol->ClearFieldsAutoplaced(); break; }