Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
537a97cf
Commit
537a97cf
authored
May 22, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ratsnest is computed for legacy boards in GAL view.
parent
dd1fcd05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
legacy_plugin.cpp
pcbnew/legacy_plugin.cpp
+3
-4
No files found.
pcbnew/legacy_plugin.cpp
View file @
537a97cf
...
@@ -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'"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment