Pcbnew, Module Editor: fix bug Bug #1161114 (pad not visible after undoing a move pad)
This commit is contained in:
parent
4865a68fa0
commit
3c037a3c31
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue