1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-26 23:19:44 +02:00

sch2fig/lib.c (draw_text): flipping affects both alignments

This commit is contained in:
Werner Almesberger 2016-07-28 15:42:03 -03:00
parent 538f362b0a
commit 7efb3e7e7e

View File

@ -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;