ses_layout_function()
authoryu.dongliang <18588496441@163.com>
Sat, 4 Nov 2023 03:17:36 +0000 (11:17 +0800)
committeryu.dongliang <18588496441@163.com>
Sat, 4 Nov 2023 03:17:36 +0000 (11:17 +0800)
ses_layout.c

index 180d91edf29b68528667712cfd8452fc48cfc37f..0969759b10418b32e5d7c009619f510817f7c92d 100644 (file)
@@ -340,7 +340,6 @@ int ses_lines_same_components(ScfEfunction* f)
                ec = NULL;
        }
 
-       qsort(f->elines, f->n_elines, sizeof(ScfEline*), eline_cmp);
        return 0;
 }
 
@@ -1306,6 +1305,8 @@ int ses_layout_function(ScfEfunction* f, int d)
        f->w = 0;
        f->h = 0;
 
+       qsort(f->elines, f->n_elines, sizeof(ScfEline*), eline_cmp);
+
        int ret = __ses_layout_lines(f, d);
        if (ret < 0)
                return ret;