From: yu.dongliang <18588496441@163.com> Date: Tue, 11 Jul 2023 06:17:31 +0000 (+0800) Subject: fix X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=889e203c15c00b5816036668df50f8ceedafcb47;p=ses.git fix --- diff --git a/ses_layout.c b/ses_layout.c index 9b08cac..dc3aa18 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -312,14 +312,6 @@ int __ses_layout_function(ScfEfunction* f, ScfEline* el, size_t* pn, uint32_t d, if (ret < 0) return ret; - if (i == el->n_conns / 2) { - uint32_t tmp = el ->lines[0]->y0; - el ->lines[0]->y0 = el2->lines[0]->y0; - el2->lines[0]->y0 = tmp; - - el ->lines[0]->y1 = el ->lines[0]->y0; - el2->lines[0]->y1 = el2->lines[0]->y0; - } break; } } @@ -562,7 +554,7 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_ cairo_move_to(cr, c->x - 5, c->y + 5); cairo_line_to(cr, c->x + 5, c->y + 5); cairo_line_to(cr, c->x, c->y - 3); - cairo_line_to(cr, c->x + 5, c->y + 5); + cairo_line_to(cr, c->x - 5, c->y + 5); } cairo_move_to(cr, c->x, c->y);