From 670841f3615b8efdb094ecb3ea7b8aa58c6144c4 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Thu, 15 Jun 2023 23:05:25 +0200 Subject: [PATCH] fix segfault in delete() where del_rect_line_arc_poly() (which calculates text object bboxes) was called after text items deleted --- src/select.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/select.c b/src/select.c index 58048318..a363beb6 100644 --- a/src/select.c +++ b/src/select.c @@ -398,6 +398,8 @@ void delete(int to_push_undo) /* 32: call prepare_netlist_structs(0) if show net names enabled * 4: call symbol_bbox() to precisely update bbox to current zoom level */ + del_rect_line_arc_poly(floaters); + for(i=0;itexts; ++i) { if(xctx->text[i].sel == SELECTED) @@ -471,7 +473,6 @@ void delete(int to_push_undo) update_conn_cues(WIRELAYER, 0, 0); } - del_rect_line_arc_poly(floaters); if(xctx->hilight_nets) { propagate_hilights(1, 1, XINSERT_NOREPLACE);