From 6dcfe03ef0c33d2213cf06f12cb7e2c49150ed9e Mon Sep 17 00:00:00 2001 From: TT Date: Wed, 6 Nov 2019 21:24:00 +0900 Subject: [PATCH] fix: edelay position on odd number of traces --- plot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot.c b/plot.c index 0d9de45..354a842 100644 --- a/plot.c +++ b/plot.c @@ -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");