From df89b5bf8a25ee4ede2e852ad4c3fd897f44084d Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 11 Jun 2019 06:46:06 -0700 Subject: [PATCH] eeschema: Don't extend the block when finalizing action The block draw function is called during the mouse capture callback. It shouldn't be called after the block size is finalized. Fixes: lp:1832289 * https://bugs.launchpad.net/kicad/+bug/1832289 --- eeschema/block.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/eeschema/block.cpp b/eeschema/block.cpp index 9a56299d39..0bb2f059b4 100644 --- a/eeschema/block.cpp +++ b/eeschema/block.cpp @@ -293,7 +293,6 @@ bool SCH_EDIT_FRAME::HandleBlockEnd( wxDC* aDC ) case BLOCK_CUT: case BLOCK_DELETE: GetScreen()->UpdatePickList(); - DrawAndSizingBlockOutlines( m_canvas, aDC, wxDefaultPosition, false ); // The CUT variant needs to copy the items from their originial position if( ( block->GetCommand() == BLOCK_CUT ) && block->GetCount() ) @@ -319,7 +318,6 @@ bool SCH_EDIT_FRAME::HandleBlockEnd( wxDC* aDC ) case BLOCK_COPY: // Save a copy of items in paste buffer GetScreen()->UpdatePickList(); - DrawAndSizingBlockOutlines( m_canvas, aDC, wxDefaultPosition, false ); if( block->GetCount() ) {