Eeschema: Prevent block duplicate from disappearing

Duplicate is handled like move/drag but shouldn't mark the original
items as moving.  This prevents a redraw from drawing the original
items.

Fixes: lp:1750083
* https://bugs.launchpad.net/kicad/+bug/1750083
This commit is contained in:
Seth Hillbrand 2018-03-07 16:38:48 -08:00
parent c3333d4665
commit 9c532dfada
1 changed files with 3 additions and 1 deletions

View File

@ -261,7 +261,9 @@ bool SCH_EDIT_FRAME::HandleBlockEnd( wxDC* aDC )
{ {
nextcmd = true; nextcmd = true;
GetScreen()->SelectBlockItems(); GetScreen()->SelectBlockItems();
if( block->GetCommand() != BLOCK_DUPLICATE )
block->SetFlags( IS_MOVED ); block->SetFlags( IS_MOVED );
m_canvas->CallMouseCapture( aDC, wxDefaultPosition, false ); m_canvas->CallMouseCapture( aDC, wxDefaultPosition, false );
m_canvas->SetMouseCaptureCallback( DrawMovingBlockOutlines ); m_canvas->SetMouseCaptureCallback( DrawMovingBlockOutlines );
m_canvas->CallMouseCapture( aDC, wxDefaultPosition, false ); m_canvas->CallMouseCapture( aDC, wxDefaultPosition, false );