From 205b1ba4edf88f73cf13d940a48b93eba06874c2 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Mon, 6 Nov 2023 13:59:45 +0800 Subject: [PATCH] ses_layout_draw() --- ses_layout.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ses_layout.c b/ses_layout.c index bf2ddf5..a342be4 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -1406,6 +1406,9 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_ for (k = 0; k < el->n_lines; k++) { l = el->lines[k]; + if (l->x0 > l->x1) + continue; + snprintf(text, sizeof(text) - 1, "%ld_%ld", el->id, k); cairo_move_to (cr, l->x0 - 30, l->y0 - 5); -- 2.25.1