fix: edelay position on odd number of traces

This commit is contained in:
TT 2019-11-06 21:24:00 +09:00
parent 9133f81f3f
commit 6dcfe03ef0

2
plot.c
View file

@ -1514,7 +1514,7 @@ cell_draw_marker_info(int m, int n, int w, int h)
if (electrical_delay != 0) {
// draw electrical delay
int xpos = 21;
int ypos = 1 + (j/2)*7;
int ypos = 1 + ((j+1)/2)*7;
xpos -= m * CELLWIDTH -CELLOFFSETX;
ypos -= n * CELLHEIGHT;
chsnprintf(buf, sizeof buf, "Edelay");