Commit 537a97cf authored by Maciej Suminski's avatar Maciej Suminski

Ratsnest is computed for legacy boards in GAL view.

parent dd1fcd05
...@@ -2054,24 +2054,21 @@ void LEGACY_PLUGIN::loadTrackList( int aStructType ) ...@@ -2054,24 +2054,21 @@ void LEGACY_PLUGIN::loadTrackList( int aStructType )
else else
makeType = aStructType; makeType = aStructType;
TRACK* newTrack; // BOARD insert this new one immediately after instantiation TRACK* newTrack;
switch( makeType ) switch( makeType )
{ {
default: default:
case PCB_TRACE_T: case PCB_TRACE_T:
newTrack = new TRACK( m_board ); newTrack = new TRACK( m_board );
m_board->m_Track.Append( newTrack );
break; break;
case PCB_VIA_T: case PCB_VIA_T:
newTrack = new VIA( m_board ); newTrack = new VIA( m_board );
m_board->m_Track.Append( newTrack );
break; break;
case PCB_ZONE_T: // this is now deprecated, but exist in old boards case PCB_ZONE_T: // this is now deprecated, but exist in old boards
newTrack = new SEGZONE( m_board ); newTrack = new SEGZONE( m_board );
m_board->m_Zone.Append( (SEGZONE*) newTrack );
break; break;
} }
...@@ -2099,6 +2096,8 @@ void LEGACY_PLUGIN::loadTrackList( int aStructType ) ...@@ -2099,6 +2096,8 @@ void LEGACY_PLUGIN::loadTrackList( int aStructType )
newTrack->SetNetCode( net_code ); newTrack->SetNetCode( net_code );
newTrack->SetState( flags, true ); newTrack->SetState( flags, true );
m_board->Add( newTrack );
} }
THROW_IO_ERROR( "Missing '$EndTRACK'" ); THROW_IO_ERROR( "Missing '$EndTRACK'" );
......
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