Commit 3c037a3c authored by jean-pierre charras's avatar jean-pierre charras

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

parent 4865a68f
...@@ -149,6 +149,7 @@ void PCB_BASE_FRAME::PlacePad( D_PAD* aPad, wxDC* DC ) ...@@ -149,6 +149,7 @@ void PCB_BASE_FRAME::PlacePad( D_PAD* aPad, wxDC* DC )
} }
// Save old module and old items values // Save old module and old items values
aPad->ClearFlags();
wxPoint pad_curr_position = aPad->GetPosition(); wxPoint pad_curr_position = aPad->GetPosition();
aPad->SetPosition( Pad_OldPos ); aPad->SetPosition( Pad_OldPos );
...@@ -192,8 +193,6 @@ void PCB_BASE_FRAME::PlacePad( D_PAD* aPad, wxDC* DC ) ...@@ -192,8 +193,6 @@ void PCB_BASE_FRAME::PlacePad( D_PAD* aPad, wxDC* DC )
aPad->SetX0( dX + aPad->GetPos0().x ); aPad->SetX0( dX + aPad->GetPos0().x );
aPad->SetY0( dY + aPad->GetPos0().y ); aPad->SetY0( dY + aPad->GetPos0().y );
aPad->ClearFlags();
if( DC ) if( DC )
aPad->Draw( m_canvas, DC, GR_OR ); aPad->Draw( m_canvas, DC, GR_OR );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment