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
This commit is contained in:
parent
cca4037fec
commit
df89b5bf8a
|
@ -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() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue