Index: trunk/src_plugins/io_mentor_cell/read.c =================================================================== --- trunk/src_plugins/io_mentor_cell/read.c (revision 30007) +++ trunk/src_plugins/io_mentor_cell/read.c (revision 30008) @@ -605,27 +605,24 @@ if (tmp != NULL) { if (strcmp(tmp->argv[1], "Left") == 0) { x1 = tx; - if (mirrored == 0) { + if (mirrored == 0) x2 = tx+width; - } else { + else x2 = tx-width; - } } else if (strcmp(tmp->argv[1], "Center") == 0) { x1 = tx - (width >> 1); - if (mirrored == 0) { + if (mirrored == 0) x2 = tx + (width >> 1); - } else { + else x2 = tx - (width >> 1); - } } else if (strcmp(tmp->argv[1], "Right") == 0) { - x2=tx; - if (mirrored == 0) { - x1=tx-width; - } else { - x1=tx+width; - } + x2 = tx; + if (mirrored == 0) + x1 = tx-width; + else + x1 = tx+width; } else hkp_error(tmp, "Unknown horizontal alignment (%s). Text will be rendered, but it may not have a correct size.\n", tmp->argv[1]); @@ -668,7 +665,6 @@ pcb_line_new(ly, x2, y1, x2, y2, thickness, cl, DEFAULT_OBJ_FLAG); pcb_line_new(ly, x2, y2, x1, y2, thickness, cl, DEFAULT_OBJ_FLAG); pcb_line_new(ly, x1, y2, x1, y1, thickness, cl, DEFAULT_OBJ_FLAG); - }