From f6b6665fedee0a10321b57a1d48367ed4111187e Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 28 Mar 2013 10:40:29 +0100 Subject: [PATCH] Pcbnew, Module Editor: fix bug Bug #1161114 (pad not visible after undoing a move pad) --- pcbnew/move-drag_pads.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pcbnew/move-drag_pads.cpp b/pcbnew/move-drag_pads.cpp index 0c35d4e11a..7cc032af6a 100644 --- a/pcbnew/move-drag_pads.cpp +++ b/pcbnew/move-drag_pads.cpp @@ -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 );