Pcbnew: fixed a bug that crashes pcbnew when dragging a track segment
This commit is contained in:
parent
958e663d64
commit
5bf0a25900
|
@ -827,7 +827,7 @@ void WinEDA_PcbFrame::Start_DragTrackSegmentAndKeepSlope( TRACK* track, wxDC* DC
|
||||||
if( TrackToEndPoint )
|
if( TrackToEndPoint )
|
||||||
{
|
{
|
||||||
TrackToEndPoint->SetState( BUSY, ON );
|
TrackToEndPoint->SetState( BUSY, ON );
|
||||||
if( (TrackToStartPoint->Type() == TYPE_VIA) ||
|
if( (TrackToEndPoint->Type() == TYPE_VIA) ||
|
||||||
Locate_Piste_Connectee( track, GetBoard()->m_Track, NULL, END ) )
|
Locate_Piste_Connectee( track, GetBoard()->m_Track, NULL, END ) )
|
||||||
error = true;
|
error = true;
|
||||||
TrackToEndPoint->SetState( BUSY, OFF );
|
TrackToEndPoint->SetState( BUSY, OFF );
|
||||||
|
|
Loading…
Reference in New Issue