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
5f1c9060
Commit
5f1c9060
authored
Mar 04, 2015
by
Tomasz Wlostowski
Committed by
Wayne Stambaugh
Mar 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
P&S router: fix unguarded boost optional derefernce. (fixes lp:1427880)
parent
b580ef70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
pns_diff_pair.cpp
pcbnew/router/pns_diff_pair.cpp
+10
-7
No files found.
pcbnew/router/pns_diff_pair.cpp
View file @
5f1c9060
...
...
@@ -638,14 +638,17 @@ void PNS_DP_GATEWAYS::BuildGeneric( const VECTOR2I& p0_p, const VECTOR2I& p0_n,
// are on the same straight/diagonal line
for
(
int
k
=
0
;
k
<
2
;
k
++
)
{
m
=
*
ips
[
k
];
if
(
m
&&
*
m
!=
p0_p
&&
*
m
!=
p0_n
)
if
(
ips
[
k
]
)
{
const
VECTOR2I
m
(
*
ips
[
k
]
);
if
(
m
!=
p0_p
&&
m
!=
p0_n
)
{
int
prio
=
(
padDist
>
padToGapThreshold
*
m_gap
?
10
:
20
);
VECTOR2I
g_p
(
(
p0_p
-
*
m
).
Resize
(
(
double
)
m_gap
*
M_SQRT1_2
)
);
VECTOR2I
g_n
(
(
p0_n
-
*
m
).
Resize
(
(
double
)
m_gap
*
M_SQRT1_2
)
);
VECTOR2I
g_p
(
(
p0_p
-
m
).
Resize
(
(
double
)
m_gap
*
M_SQRT1_2
)
);
VECTOR2I
g_n
(
(
p0_n
-
m
).
Resize
(
(
double
)
m_gap
*
M_SQRT1_2
)
);
m_gateways
.
push_back
(
PNS_DP_GATEWAY
(
*
m
+
g_p
,
*
m
+
g_n
,
k
==
0
?
true
:
false
,
DIRECTION_45
::
ANG_OBTUSE
,
prio
)
);
m_gateways
.
push_back
(
PNS_DP_GATEWAY
(
m
+
g_p
,
m
+
g_n
,
k
==
0
?
true
:
false
,
DIRECTION_45
::
ANG_OBTUSE
,
prio
)
);
}
}
}
...
...
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