Index: trunk/src_plugins/io_mentor_cell/read.c =================================================================== --- trunk/src_plugins/io_mentor_cell/read.c (revision 32057) +++ trunk/src_plugins/io_mentor_cell/read.c (revision 32058) @@ -547,7 +547,6 @@ tmp = find_nth(attr->first_child, "ROTATION", 0); if (tmp != NULL) { parse_rot(ctx, tmp, &rot, (pcb_layer_flags_(ly) & PCB_LYT_BOTTOM)); -/* rotbb = rot; remove bbox */ } else { hkp_error(attr, "Can not find rotation of text. Text will be NOT rendered.\n"); @@ -603,30 +602,14 @@ tmp = find_nth(attr->first_child, "HORZ_JUST", 0); if (tmp != NULL) { -/* xc = tx; remove bbox */ if (strcmp(tmp->argv[1], "Left") == 0) { -/* x1 = tx; remove bbox */ anchx = 0; -/* if (mirrored == 0) - x2 = tx+width; - else - x2 = tx-width; remove bbox */ } else if (strcmp(tmp->argv[1], "Center") == 0) { -/* x1 = tx - (width >> 1); remove bbox*/ anchx = width >> 1; -/* if (mirrored == 0) - x2 = tx + (width >> 1); - else - x2 = tx - (width >> 1); remove bbox*/ } else if (strcmp(tmp->argv[1], "Right") == 0) { -/* x2 = tx; remove bbox */ anchx = width; -/* 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]); @@ -638,7 +621,6 @@ tmp = find_nth(attr->first_child, "VERT_JUST", 0); if (tmp != NULL) { -/* yc = ty; remove bbox*/ rnd_coord_t ymax = height+ymin; TODO( "Consider rotation, using:" @@ -647,14 +629,11 @@ " double sina = sin(-(double)rot / RND_RAD_TO_DEG), cosa = cos(-(double)rot / RND_RAD_TO_DEG);"); if (strcmp(tmp->argv[1], "Top") == 0) { anchy = 0; -/* y1 = ty+height; y2 = ty; remove bbox */ } else if (strcmp(tmp->argv[1], "Center") == 0) { -/* y1 = ty - ymin + (ymax >> 1); y2 = ty - (ymax >> 1); remove bbox*/ anchy = ymax >> 1; } else if (strcmp(tmp->argv[1], "Bottom") == 0) { -/* y1=ty-ymin; y2=ty-ymin-height; remove bbox; ymin is negative */ anchy = height+ymin; /* ymin is negative */ } else