mirror of
https://github.com/StefanSchippers/xschem.git
synced 2026-08-22 06:07:29 +02:00
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:
@@ -662,6 +662,7 @@ void copy_objects(int what)
|
|||||||
firstw = firsti = 1;
|
firstw = firsti = 1;
|
||||||
|
|
||||||
draw_selection(xctx->gctiled,0);
|
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() */
|
find_inst_to_be_redrawn(1); /* build list before copying and recalculating prepare_netlist_structs() */
|
||||||
|
|
||||||
for(i=0;i<xctx->lastsel;i++)
|
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 */
|
/* calculate moving symbols bboxes before actually doing the move */
|
||||||
firsti = firstw = 1;
|
firsti = firstw = 1;
|
||||||
draw_selection(xctx->gctiled,0);
|
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() */
|
find_inst_to_be_redrawn(1); /* build list before moving and recalculating prepare_netlist_structs() */
|
||||||
for(k=0;k<cadlayers;k++)
|
for(k=0;k<cadlayers;k++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user