projects
/
ses.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
248b893
)
ses_layout_draw()
author
yu.dongliang
<18588496441@163.com>
Mon, 6 Nov 2023 05:59:45 +0000
(13:59 +0800)
committer
yu.dongliang
<18588496441@163.com>
Mon, 6 Nov 2023 05:59:45 +0000
(13:59 +0800)
ses_layout.c
patch
|
blob
|
blame
|
history
diff --git
a/ses_layout.c
b/ses_layout.c
index bf2ddf5c722cd0b25e70131a78cf569a4fb3548d..a342be4ccef788606b8a735827a95d2b38fd7173 100644
(file)
--- 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);