Pcbnew: fixed a bug that crashes pcbnew when dragging a track segment

This commit is contained in:
charras 2009-08-19 15:28:35 +00:00
parent 958e663d64
commit 5bf0a25900
1 changed files with 1 additions and 1 deletions

View File

@ -827,7 +827,7 @@ void WinEDA_PcbFrame::Start_DragTrackSegmentAndKeepSlope( TRACK* track, wxDC* DC
if( TrackToEndPoint )
{
TrackToEndPoint->SetState( BUSY, ON );
if( (TrackToStartPoint->Type() == TYPE_VIA) ||
if( (TrackToEndPoint->Type() == TYPE_VIA) ||
Locate_Piste_Connectee( track, GetBoard()->m_Track, NULL, END ) )
error = true;
TrackToEndPoint->SetState( BUSY, OFF );