From: yu.dongliang <18588496441@163.com> Date: Sun, 5 Nov 2023 10:03:19 +0000 (+0800) Subject: __ses_xchg_cx() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=95f98945be14a2df57dcb4e9213b4de35c140846;p=ses.git __ses_xchg_cx() --- diff --git a/ses_layout.c b/ses_layout.c index c274cdb..e80bdec 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -1132,7 +1132,7 @@ static void __ses_xchg_cx(ScfEfunction* f, int d) for (j = i + 1; j < f->n_components; j++) { c1 = f->components[j]; - if (c0->color != c1->color) + if ((c0->color != c1->color) && (0 != c1->color || c0->color > 2)) continue; int y2 = INT_MAX; @@ -1455,7 +1455,7 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_ for (k = 0; k < el->n_lines; k++) { l = el->lines[k]; - snprintf(text, sizeof(text) - 1, "%ld,%ld", el->id, k); + snprintf(text, sizeof(text) - 1, "%ld_%ld", el->id, k); cairo_move_to (cr, l->x0 - 30, l->y0 - 5); cairo_show_text(cr, text);