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
70aba1a8
Commit
70aba1a8
authored
Sep 04, 2009
by
diemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed DRC false alerts for rect pads oriented by 45 degrees
parent
bd9a7d89
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
drc.cpp
pcbnew/drc.cpp
+5
-2
No files found.
pcbnew/drc.cpp
View file @
70aba1a8
...
@@ -1118,8 +1118,11 @@ bool DRC::checkClearancePadToPad( D_PAD* aRefPad, D_PAD* aPad, const int dist_mi
...
@@ -1118,8 +1118,11 @@ bool DRC::checkClearancePadToPad( D_PAD* aRefPad, D_PAD* aPad, const int dist_mi
if
(
aPad
->
m_PadShape
==
PAD_RECT
)
if
(
aPad
->
m_PadShape
==
PAD_RECT
)
{
{
wxSize
size
=
aPad
->
m_Size
;
wxSize
size
=
aPad
->
m_Size
;
if
(
(
pad_angle
==
0
)
||
(
pad_angle
==
900
)
||
(
pad_angle
==
1800
)
// The trivial case is if both rects are rotated by multiple of 90°
||
(
pad_angle
==
2700
)
)
if
(
((
aRefPad
->
m_Orient
==
0
)
||
(
aRefPad
->
m_Orient
==
900
)
||
(
aRefPad
->
m_Orient
==
1800
)
||
(
aRefPad
->
m_Orient
==
2700
))
&&
((
aPad
->
m_Orient
==
0
)
||
(
aPad
->
m_Orient
==
900
)
||
(
aPad
->
m_Orient
==
1800
)
||
(
aPad
->
m_Orient
==
2700
))
)
{
{
if
(
(
pad_angle
==
900
)
||
(
pad_angle
==
2700
)
)
if
(
(
pad_angle
==
900
)
||
(
pad_angle
==
2700
)
)
{
{
...
...
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