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
086c8dec
Commit
086c8dec
authored
Dec 02, 2011
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix warnings and comment
parent
0bdef385
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
15 deletions
+13
-15
class_pad.cpp
pcbnew/class_pad.cpp
+13
-15
No files found.
pcbnew/class_pad.cpp
View file @
086c8dec
...
@@ -854,41 +854,39 @@ int D_PAD::Compare( const D_PAD* padref, const D_PAD* padcmp )
...
@@ -854,41 +854,39 @@ int D_PAD::Compare( const D_PAD* padref, const D_PAD* padcmp )
{
{
int
diff
;
int
diff
;
if
(
diff
=
padref
->
m_PadShape
-
padcmp
->
m_PadShape
)
if
(
(
diff
=
padref
->
m_PadShape
-
padcmp
->
m_PadShape
)
!=
0
)
return
diff
;
return
diff
;
if
(
diff
=
padref
->
m_DrillShape
-
padcmp
->
m_DrillShape
)
if
(
(
diff
=
padref
->
m_DrillShape
-
padcmp
->
m_DrillShape
)
!=
0
)
return
diff
;
return
diff
;
if
(
diff
=
padref
->
m_Drill
.
x
-
padcmp
->
m_Drill
.
x
)
if
(
(
diff
=
padref
->
m_Drill
.
x
-
padcmp
->
m_Drill
.
x
)
!=
0
)
return
diff
;
return
diff
;
if
(
diff
=
padref
->
m_Drill
.
y
-
padcmp
->
m_Drill
.
y
)
if
(
(
diff
=
padref
->
m_Drill
.
y
-
padcmp
->
m_Drill
.
y
)
!=
0
)
return
diff
;
return
diff
;
if
(
diff
=
padref
->
m_Size
.
x
-
padcmp
->
m_Size
.
x
)
if
(
(
diff
=
padref
->
m_Size
.
x
-
padcmp
->
m_Size
.
x
)
!=
0
)
return
diff
;
return
diff
;
if
(
diff
=
padref
->
m_Size
.
y
-
padcmp
->
m_Size
.
y
)
if
(
(
diff
=
padref
->
m_Size
.
y
-
padcmp
->
m_Size
.
y
)
!=
0
)
return
diff
;
return
diff
;
if
(
diff
=
padref
->
m_Offset
.
x
-
padcmp
->
m_Offset
.
x
)
if
(
(
diff
=
padref
->
m_Offset
.
x
-
padcmp
->
m_Offset
.
x
)
!=
0
)
return
diff
;
return
diff
;
if
(
diff
=
padref
->
m_Offset
.
y
-
padcmp
->
m_Offset
.
y
)
if
(
(
diff
=
padref
->
m_Offset
.
y
-
padcmp
->
m_Offset
.
y
)
!=
0
)
return
diff
;
return
diff
;
if
(
diff
=
padref
->
m_DeltaSize
.
x
-
padcmp
->
m_DeltaSize
.
x
)
if
(
(
diff
=
padref
->
m_DeltaSize
.
x
-
padcmp
->
m_DeltaSize
.
x
)
!=
0
)
return
diff
;
return
diff
;
if
(
diff
=
padref
->
m_DeltaSize
.
y
-
padcmp
->
m_DeltaSize
.
y
)
if
(
(
diff
=
padref
->
m_DeltaSize
.
y
-
padcmp
->
m_DeltaSize
.
y
)
!=
0
)
return
diff
;
return
diff
;
// @todo check if export_gencad still works:
// Dick: specctra_export needs this
// specctra_export needs this, but maybe export_gencad does not.
// Lorenzo: gencad also needs it to implement padstacks!
// Lorenzo: XXX no idea about specctra, but gencad need it to
if
(
(
diff
=
padref
->
m_layerMask
-
padcmp
->
m_layerMask
)
!=
0
)
// implement padstacks!
if
(
diff
=
padref
->
m_layerMask
-
padcmp
->
m_layerMask
)
return
diff
;
return
diff
;
return
0
;
return
0
;
...
...
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