From 14450aec967ba0b40c86d5321b88773f7952b752 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Sat, 4 Nov 2023 11:17:36 +0800 Subject: [PATCH] ses_layout_function() --- ses_layout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ses_layout.c b/ses_layout.c index 180d91e..0969759 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -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; -- 2.25.1