From: yu.dongliang <18588496441@163.com> Date: Sat, 11 Nov 2023 13:26:57 +0000 (+0800) Subject: fix: __ses_path_pr() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=e1452509fe72385a49bcf029317dbbfb36f8fe09;p=ses.git fix: __ses_path_pr() --- 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;