From aa622994e18114d4bb4e2bc1bd496a66d84dbd7d Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 12 Oct 2018 17:07:52 -0700 Subject: [PATCH] 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 --- eeschema/block.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/eeschema/block.cpp b/eeschema/block.cpp index 0e76ca770a..9f6788912f 100644 --- a/eeschema/block.cpp +++ b/eeschema/block.cpp @@ -140,6 +140,7 @@ void SCH_EDIT_FRAME::HandleBlockPlace( wxDC* DC ) { SCH_ITEM* item = dynamic_cast( block->GetItems().GetPickedItem( ii ) ); item->Move( block->GetMoveVector() ); + item->SetFlags( IS_MOVED ); GetCanvas()->GetView()->Update( item, KIGFX::GEOMETRY ); } break;