From: yu.dongliang <18588496441@163.com> Date: Mon, 17 Jul 2023 14:24:27 +0000 (+0800) Subject: tmp X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=6f2712976c6b629fdb99cb1dc0cd246c6e0804ff;p=ses.git tmp --- diff --git a/ses_layout.c b/ses_layout.c index 7b4c5b7..c1f8d1e 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -653,17 +653,17 @@ next: p0->x -= mx - d; - cx += p0->x; - cy += p0->y; + if (j < 2) { + cx += p0->x; + cy += p0->y; + } } - c0->x = cx / c0->n_pins; - c0->y = cy / c0->n_pins; + c0->x = cx / 2; + c0->y = cy / 2; - if (2 == c0->n_pins) { - c0->pins[0]->x = c0->x; - c0->pins[1]->x = c0->x; - } + c0->pins[0]->x = c0->x; + c0->pins[1]->x = c0->x; } for (i = 0; i < f->n_elines; i++) {