diff --git a/common/legacy_wx/block.cpp b/common/legacy_wx/block.cpp index fc85d7abb0..320e21f4e1 100644 --- a/common/legacy_wx/block.cpp +++ b/common/legacy_wx/block.cpp @@ -178,9 +178,16 @@ void DrawAndSizingBlockOutlines( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoin BLOCK_SELECTOR* block = &aPanel->GetScreen()->m_BlockLocate; block->SetMoveVector( wxPoint( 0, 0 ) ); + + if( aErase && aDC ) // Erase current outline + block->Draw( aPanel, aDC, wxPoint( 0, 0 ), g_XorMode, block->GetColor() ); + block->SetLastCursorPosition( aPanel->GetParent()->GetCrossHairPosition() ); block->SetEnd( aPanel->GetParent()->GetCrossHairPosition() ); + if( aDC ) // Draw new outline + block->Draw( aPanel, aDC, wxPoint( 0, 0 ), g_XorMode, block->GetColor() ); + if( block->GetState() == STATE_BLOCK_INIT ) { if( block->GetWidth() || block->GetHeight() )