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
ae44fb62
Commit
ae44fb62
authored
Jul 14, 2014
by
Kirill Mavreshko
Committed by
Maciej Suminski
Jul 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: pcbnew crashes when you try to save a file
parent
7d1c1f30
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
kicad_plugin.cpp
pcbnew/kicad_plugin.cpp
+4
-2
No files found.
pcbnew/kicad_plugin.cpp
View file @
ae44fb62
...
@@ -63,12 +63,14 @@ static const wxString traceFootprintLibrary( wxT( "KicadFootprintLib" ) );
...
@@ -63,12 +63,14 @@ static const wxString traceFootprintLibrary( wxT( "KicadFootprintLib" ) );
///> Removes empty nets (i.e. with node count equal zero) from net classes
///> Removes empty nets (i.e. with node count equal zero) from net classes
void
filterNetClass
(
const
BOARD
&
aBoard
,
NETCLASS
&
aNetClass
)
void
filterNetClass
(
const
BOARD
&
aBoard
,
NETCLASS
&
aNetClass
)
{
{
for
(
NETCLASS
::
const_iterator
it
=
aNetClass
.
begin
();
it
!=
aNetClass
.
end
();
++
it
)
for
(
NETCLASS
::
const_iterator
it
=
aNetClass
.
begin
();
it
!=
aNetClass
.
end
();
)
{
{
NETINFO_ITEM
*
netinfo
=
aBoard
.
FindNet
(
*
it
);
NETINFO_ITEM
*
netinfo
=
aBoard
.
FindNet
(
*
it
);
if
(
netinfo
&&
netinfo
->
GetNodesCount
()
<=
0
)
// hopefully there are no nets with negative
if
(
netinfo
&&
netinfo
->
GetNodesCount
()
<=
0
)
// hopefully there are no nets with negative
aNetClass
.
Remove
(
it
);
// node count, but you never know..
aNetClass
.
Remove
(
it
++
);
// node count, but you never know..
else
++
it
;
}
}
}
}
...
...
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