From 5ef55524f56c4a22ff3fbf0c1e437b3f39f4492b Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Tue, 7 Nov 2023 21:38:59 +0800 Subject: [PATCH] tmp --- ses_layout.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/ses_layout.c b/ses_layout.c index a5f0074..e48fbd3 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -453,6 +453,10 @@ static int __ses_layout_lines3(ScfEfunction* f) N = v->edges->size; } + scf_vector_t* paths = scf_vector_alloc(); + int ret = __ses_topo_paths(f, paths); + if (ret < 0) + return ret; for (j = N; j >= 1; j--) { @@ -1337,15 +1341,9 @@ int ses_layout_function(ScfEfunction* f, int d) f->w = 0; f->h = 0; - scf_vector_t* paths = scf_vector_alloc(); - - int ret = __ses_topo_paths(f, paths); - if (ret < 0) - return ret; - qsort(f->elines, f->n_elines, sizeof(ScfEline*), eline_cmp); - ret = __ses_layout_lines(f, d); + int ret = __ses_layout_lines(f, d); if (ret < 0) return ret; -- 2.25.1