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
9de1af02
Commit
9de1af02
authored
Oct 30, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PADSTACK::Compare() now tests id also to include drill hole size
parent
1ead1912
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
specctra.cpp
pcbnew/specctra.cpp
+7
-0
No files found.
pcbnew/specctra.cpp
View file @
9de1af02
...
@@ -3747,6 +3747,13 @@ int PADSTACK::Compare( PADSTACK* lhs, PADSTACK* rhs )
...
@@ -3747,6 +3747,13 @@ int PADSTACK::Compare( PADSTACK* lhs, PADSTACK* rhs )
rhs
->
hash
=
rhs
->
makeHash
();
rhs
->
hash
=
rhs
->
makeHash
();
int
result
=
lhs
->
hash
.
compare
(
rhs
->
hash
);
int
result
=
lhs
->
hash
.
compare
(
rhs
->
hash
);
if
(
result
)
return
result
;
// Via names hold the drill diameters, so we have to include those to discern
// between two vias with same copper size but with different drill sizes.
result
=
lhs
->
padstack_id
.
compare
(
rhs
->
padstack_id
);
return
result
;
return
result
;
}
}
...
...
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