no XORing on delete segment
This commit is contained in:
parent
58b5543b9e
commit
a4ffa8fa90
|
@ -34,9 +34,7 @@ TRACK* WinEDA_PcbFrame::Delete_Segment( wxDC* DC, TRACK* Track )
|
|||
|
||||
if( Track->GetState(DELETED) )
|
||||
{
|
||||
#if defined(DEBUG)
|
||||
printf("WinEDA_PcbFrame::Delete_Segment(): bug deleted already deleted TRACK\n");
|
||||
#endif
|
||||
D(printf("WinEDA_PcbFrame::Delete_Segment(): bug deleted already deleted TRACK\n");)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -120,7 +118,13 @@ TRACK* WinEDA_PcbFrame::Delete_Segment( wxDC* DC, TRACK* Track )
|
|||
|
||||
|
||||
current_net_code = Track->GetNet();
|
||||
|
||||
#if 0 && !defined(DEBUG)
|
||||
Track->Draw( DrawPanel, DC, GR_XOR );
|
||||
#else
|
||||
// just redraw the whole drawing so there are no XOR remnants at track intersections.
|
||||
DrawPanel->Refresh( TRUE );
|
||||
#endif
|
||||
|
||||
SaveItemEfface( Track, 1 );
|
||||
GetScreen()->SetModify();
|
||||
|
|
|
@ -833,6 +833,7 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IOError )
|
|||
case LT_SIGNAL: layerType = T_signal; break;
|
||||
case LT_POWER: layerType = T_power; break;
|
||||
case LT_MIXED: layerType = T_mixed; break;
|
||||
case LT_JUMPER: layerType = T_jumper; break;
|
||||
}
|
||||
|
||||
layer->layer_type = layerType;
|
||||
|
|
Loading…
Reference in New Issue