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
36813fe8
Commit
36813fe8
authored
Mar 03, 2014
by
Maciej Suminski
Committed by
Wayne Stambaugh
Mar 03, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Pcbnew: fixed SIGFPE arithetic exception. (fixes lp:128339, 1285969, and 1286426)
parents
7c3918da
41397f5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
ratsnest_data.cpp
pcbnew/ratsnest_data.cpp
+20
-6
No files found.
pcbnew/ratsnest_data.cpp
View file @
36813fe8
...
@@ -801,26 +801,40 @@ void RN_DATA::ProcessBoard()
...
@@ -801,26 +801,40 @@ void RN_DATA::ProcessBoard()
{
{
m_nets
.
clear
();
m_nets
.
clear
();
m_nets
.
resize
(
m_board
->
GetNetCount
()
);
m_nets
.
resize
(
m_board
->
GetNetCount
()
);
int
netCode
;
// Iterate over all items that may need to be connected
// Iterate over all items that may need to be connected
for
(
MODULE
*
module
=
m_board
->
m_Modules
;
module
;
module
=
module
->
Next
()
)
for
(
MODULE
*
module
=
m_board
->
m_Modules
;
module
;
module
=
module
->
Next
()
)
{
{
for
(
D_PAD
*
pad
=
module
->
Pads
().
GetFirst
();
pad
;
pad
=
pad
->
Next
()
)
for
(
D_PAD
*
pad
=
module
->
Pads
().
GetFirst
();
pad
;
pad
=
pad
->
Next
()
)
m_nets
[
pad
->
GetNet
()].
AddItem
(
pad
);
{
netCode
=
pad
->
GetNet
();
if
(
netCode
>
0
)
m_nets
[
netCode
].
AddItem
(
pad
);
}
}
}
for
(
TRACK
*
track
=
m_board
->
m_Track
;
track
;
track
=
track
->
Next
()
)
for
(
TRACK
*
track
=
m_board
->
m_Track
;
track
;
track
=
track
->
Next
()
)
{
{
if
(
track
->
Type
()
==
PCB_VIA_T
)
netCode
=
track
->
GetNet
();
m_nets
[
track
->
GetNet
()].
AddItem
(
static_cast
<
SEGVIA
*>
(
track
)
);
else
if
(
track
->
Type
()
==
PCB_TRACE_T
)
if
(
netCode
>
0
)
m_nets
[
track
->
GetNet
()].
AddItem
(
track
);
{
if
(
track
->
Type
()
==
PCB_VIA_T
)
m_nets
[
netCode
].
AddItem
(
static_cast
<
SEGVIA
*>
(
track
)
);
else
if
(
track
->
Type
()
==
PCB_TRACE_T
)
m_nets
[
netCode
].
AddItem
(
track
);
}
}
}
for
(
int
i
=
0
;
i
<
m_board
->
GetAreaCount
();
++
i
)
for
(
int
i
=
0
;
i
<
m_board
->
GetAreaCount
();
++
i
)
{
{
ZONE_CONTAINER
*
zone
=
m_board
->
GetArea
(
i
);
ZONE_CONTAINER
*
zone
=
m_board
->
GetArea
(
i
);
m_nets
[
zone
->
GetNet
()].
AddItem
(
zone
);
netCode
=
zone
->
GetNet
();
if
(
netCode
>
0
)
m_nets
[
netCode
].
AddItem
(
zone
);
}
}
}
}
...
...
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