Commit 5bf0a259 authored by charras's avatar charras

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

parent 958e663d
......@@ -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 );
......
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