From e1452509fe72385a49bcf029317dbbfb36f8fe09 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Sat, 11 Nov 2023 21:26:57 +0800 Subject: [PATCH] fix: __ses_path_pr() --- ses_layout.c | 2 +- ses_step_jr.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ses_layout.c b/ses_layout.c index 4c17f1f..570b1ff 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -1980,7 +1980,7 @@ int ses_layout_board(ScfEboard* b) return ret; } -// ses_steps_analyse(f, 5, 1); + ses_steps_analyse(f, 5, 1); x = f->x; y = f->y; diff --git a/ses_step_jr.c b/ses_step_jr.c index ab5b724..2ce1961 100644 --- a/ses_step_jr.c +++ b/ses_step_jr.c @@ -77,6 +77,10 @@ void __ses_path_pr(ScfEfunction* f, ses_path_t* path, int i, int j, ScfEpin* cp1 } else if (i > 0) { p0 = path->pins->data[i - 1]; + c0 = f->components[p0->cid]; + + if (SCF_EDA_NPN == c0->type && SCF_EDA_NPN_E == p0->id) + p0 = path->pins->data[i - 2]; *r = p1->pr - p0->pr; *jr = p1->jpr - p0->jpr; -- 2.25.1