fix copy/move operation with flips/rotations: correctly restore object bboxes for correct drawing deletions (move) and restoration of originally selected component bboxes (copy)

This commit is contained in:
Stefan Frederik 2021-12-07 12:00:54 +01:00
parent 19f0fd3c6e
commit e3077c6f90
1 changed files with 2 additions and 0 deletions

View File

@ -662,6 +662,7 @@ void copy_objects(int what)
firstw = firsti = 1;
draw_selection(xctx->gctiled,0);
update_symbol_bboxes(0, 0);
find_inst_to_be_redrawn(1); /* build list before copying and recalculating prepare_netlist_structs() */
for(i=0;i<xctx->lastsel;i++)
@ -1094,6 +1095,7 @@ void move_objects(int what, int merge, double dx, double dy)
/* calculate moving symbols bboxes before actually doing the move */
firsti = firstw = 1;
draw_selection(xctx->gctiled,0);
update_symbol_bboxes(0, 0);
find_inst_to_be_redrawn(1); /* build list before moving and recalculating prepare_netlist_structs() */
for(k=0;k<cadlayers;k++)
{