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
d21ced62
Commit
d21ced62
authored
Aug 17, 2009
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no point in removing from netclass incrementally since an entire list rebuild is done below
parent
85dc98a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
+4
-16
class_netclass.cpp
pcbnew/class_netclass.cpp
+4
-16
No files found.
pcbnew/class_netclass.cpp
View file @
d21ced62
...
...
@@ -163,12 +163,13 @@ void BOARD::SynchronizeNetsAndNetClasses()
}
// Add netclass name and pointer to nets. If a net is in more than one netclass,
// remove it from all but the first netclass in which it resides.
// set the net's name and pointer to only the first netclass. Subsequent
// and therefore bogus netclass memberships will be deleted in logic below this loop.
for
(
NETCLASSES
::
iterator
clazz
=
m_NetClasses
.
begin
();
clazz
!=
m_NetClasses
.
end
();
++
clazz
)
{
NETCLASS
*
netclass
=
clazz
->
second
;
for
(
NETCLASS
::
iterator
member
=
netclass
->
begin
();
member
!=
netclass
->
end
();
)
for
(
NETCLASS
::
iterator
member
=
netclass
->
begin
();
member
!=
netclass
->
end
();
++
member
)
{
const
wxString
&
netname
=
*
member
;
...
...
@@ -177,22 +178,9 @@ void BOARD::SynchronizeNetsAndNetClasses()
// think is a sequential search.
NETINFO_ITEM
*
net
=
FindNet
(
netname
);
if
(
!
net
)
// NET 'netname' does not exist, remove it from 'netclass'
{
NETCLASS
::
iterator
e
=
member
++
;
netclass
->
Remove
(
e
);
}
else
if
(
net
->
GetClassName
()
!=
NETCLASS
::
Default
)
{
// 'net' is already in a non-default net class. This makes its
// entry in 'netclass' bogus, delete it.
NETCLASS
::
iterator
e
=
member
++
;
netclass
->
Remove
(
e
);
}
else
if
(
net
&&
net
->
GetClassName
()
==
NETCLASS
::
Default
)
{
net
->
SetClass
(
netclass
);
++
member
;
}
}
}
...
...
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