delete pad uses PostDirtyRect()

This commit is contained in:
dickelbeck 2008-03-18 02:52:49 +00:00
parent 6de852e8a6
commit 9e9a8fcf21
1 changed files with 3 additions and 7 deletions

View File

@ -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;
}