fix
authoryu.dongliang <18588496441@163.com>
Tue, 11 Jul 2023 06:17:31 +0000 (14:17 +0800)
committeryu.dongliang <18588496441@163.com>
Tue, 11 Jul 2023 06:17:31 +0000 (14:17 +0800)
ses_layout.c

index 9b08caceecc81a4ae6c81a7d974d660166d6353e..dc3aa18bb5184da49b03f7d0a05e00ce60032298 100644 (file)
@@ -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);