Pcbnew, Module Editor: fix bug Bug #1161114 (pad not visible after undoing a move pad)

This commit is contained in:
jean-pierre charras 2013-03-28 10:40:29 +01:00
parent 4865a68fa0
commit 3c037a3c31
1 changed files with 1 additions and 2 deletions

View File

@ -149,6 +149,7 @@ void PCB_BASE_FRAME::PlacePad( D_PAD* aPad, wxDC* DC )
}
// Save old module and old items values
aPad->ClearFlags();
wxPoint pad_curr_position = aPad->GetPosition();
aPad->SetPosition( Pad_OldPos );
@ -192,8 +193,6 @@ void PCB_BASE_FRAME::PlacePad( D_PAD* aPad, wxDC* DC )
aPad->SetX0( dX + aPad->GetPos0().x );
aPad->SetY0( dY + aPad->GetPos0().y );
aPad->ClearFlags();
if( DC )
aPad->Draw( m_canvas, DC, GR_OR );