From: yu.dongliang <18588496441@163.com> Date: Sat, 4 Nov 2023 03:17:36 +0000 (+0800) Subject: ses_layout_function() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=14450aec967ba0b40c86d5321b88773f7952b752;p=ses.git ses_layout_function() --- 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;