From 9e9a8fcf21820e1cd66a23781887bbc884115d86 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Tue, 18 Mar 2008 02:52:49 +0000 Subject: [PATCH] delete pad uses PostDirtyRect() --- pcbnew/move-drag_pads.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pcbnew/move-drag_pads.cpp b/pcbnew/move-drag_pads.cpp index c9a0c79652..78fce105b0 100644 --- a/pcbnew/move-drag_pads.cpp +++ b/pcbnew/move-drag_pads.cpp @@ -272,17 +272,13 @@ void WinEDA_BasePcbFrame::DeletePad( D_PAD* Pad, wxDC* DC ) m_Pcb->m_Status_Pcb = 0; - if( DC ) - Pad->Draw( DrawPanel, DC, wxPoint( 0, 0 ), GR_XOR ); - Pad->DeleteStructure(); - /* Redessin du module */ - if( DC ) - Module->Draw( DrawPanel, DC, wxPoint( 0, 0 ), GR_OR ); + DrawPanel->PostDirtyRect( Module->GetBoundingBox() ); + Module->Set_Rectangle_Encadrement(); + GetScreen()->SetModify(); - return; }