Commit 9e9a8fcf authored by dickelbeck's avatar dickelbeck

delete pad uses PostDirtyRect()

parent 6de852e8
...@@ -272,17 +272,13 @@ void WinEDA_BasePcbFrame::DeletePad( D_PAD* Pad, wxDC* DC ) ...@@ -272,17 +272,13 @@ void WinEDA_BasePcbFrame::DeletePad( D_PAD* Pad, wxDC* DC )
m_Pcb->m_Status_Pcb = 0; m_Pcb->m_Status_Pcb = 0;
if( DC )
Pad->Draw( DrawPanel, DC, wxPoint( 0, 0 ), GR_XOR );
Pad->DeleteStructure(); Pad->DeleteStructure();
/* Redessin du module */ DrawPanel->PostDirtyRect( Module->GetBoundingBox() );
if( DC )
Module->Draw( DrawPanel, DC, wxPoint( 0, 0 ), GR_OR );
Module->Set_Rectangle_Encadrement(); Module->Set_Rectangle_Encadrement();
GetScreen()->SetModify(); GetScreen()->SetModify();
return;
} }
......
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