fix segfault in delete() where del_rect_line_arc_poly() (which calculates text object bboxes) was called after text items deleted

This commit is contained in:
stefan schippers 2023-06-15 23:05:25 +02:00
parent 01806eaa10
commit 670841f361
1 changed files with 2 additions and 1 deletions

View File

@ -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;i<xctx->texts; ++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);