From 7efb3e7e7e1a45bfdfd262f59b270038f777ab25 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 28 Jul 2016 15:42:03 -0300 Subject: [PATCH] sch2fig/lib.c (draw_text): flipping affects both alignments --- sch2fig/lib.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sch2fig/lib.c b/sch2fig/lib.c index 76a284a..0c65178 100644 --- a/sch2fig/lib.c +++ b/sch2fig/lib.c @@ -383,7 +383,11 @@ static void draw_text(const struct text_obj *text, int m[6]) switch (txt.rot) { case 180: case 270: - text_flip_x(&txt); + /* @@@ consolidate this with text_flip_x */ + txt.rot = angle_add(txt.rot, 180); + txt.hor = text_flip(txt.hor); + txt.vert = text_flip(txt.vert); +// text_flip_x(&txt); break; default: break;