eeschema: Ensure is_moved flag is set when moving
Prior to placing, cleaning routines need to know which schematic items are being moved to avoid cleaning them relative to themselves. The IS_MOVED flag communicates this and is cleared by ClearDrawingState() Fixes: lp:1797576 * https://bugs.launchpad.net/kicad/+bug/1797576
This commit is contained in:
parent
4a730e6c54
commit
aa622994e1
|
@ -140,6 +140,7 @@ void SCH_EDIT_FRAME::HandleBlockPlace( wxDC* DC )
|
|||
{
|
||||
SCH_ITEM* item = dynamic_cast<SCH_ITEM*>( block->GetItems().GetPickedItem( ii ) );
|
||||
item->Move( block->GetMoveVector() );
|
||||
item->SetFlags( IS_MOVED );
|
||||
GetCanvas()->GetView()->Update( item, KIGFX::GEOMETRY );
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue