From f1556ed8012a1b54cfe5df734757d8698d23c33f Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 26 Nov 2022 10:45:42 -0800 Subject: [PATCH] Prevent mirror of text elements While we never allow the creation of mirrored text elements in the schematic and symbol library editors, external generation of symbols may cause the property to be set, which can then never be changed. This leaves the property unset for all elements Fixes https://gitlab.com/kicad/code/kicad/issues/13007 --- eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp b/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp index 8de8c0b605..52b891b014 100644 --- a/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp +++ b/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp @@ -636,7 +636,8 @@ void SCH_SEXPR_PARSER::parseEDA_TEXT( EDA_TEXT* aText, bool aConvertOverbarSynta case T_right: aText->SetHorizJustify( GR_TEXT_H_ALIGN_RIGHT ); break; case T_top: aText->SetVertJustify( GR_TEXT_V_ALIGN_TOP ); break; case T_bottom: aText->SetVertJustify( GR_TEXT_V_ALIGN_BOTTOM ); break; - case T_mirror: aText->SetMirrored( true ); break; + // Do not set mirror property for schematic text elements + case T_mirror: break; default: Expecting( "left, right, top, bottom, or mirror" ); } }