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
0a75c624
Commit
0a75c624
authored
Oct 26, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed netlist generation problems (lost common to units and common to shapes pins)
parent
b8a6c53b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
class_libentry.cpp
eeschema/class_libentry.cpp
+15
-3
No files found.
eeschema/class_libentry.cpp
View file @
0a75c624
...
@@ -402,11 +402,23 @@ LIB_DRAW_ITEM* LIB_COMPONENT::GetNextDrawItem( LIB_DRAW_ITEM* item,
...
@@ -402,11 +402,23 @@ LIB_DRAW_ITEM* LIB_COMPONENT::GetNextDrawItem( LIB_DRAW_ITEM* item,
void
LIB_COMPONENT
::
GetPins
(
LIB_PIN_LIST
&
pins
,
int
unit
,
int
convert
)
void
LIB_COMPONENT
::
GetPins
(
LIB_PIN_LIST
&
pins
,
int
unit
,
int
convert
)
{
{
/* Notes:
* when unit == 0: no unit filtering
* when convert == 0: no convert (shape selection) filtering
* when .m_Unit == 0, the body item is common to units
* when .m_Convert == 0, the body item is common to shape
*/
BOOST_FOREACH
(
LIB_DRAW_ITEM
&
item
,
m_Drawings
)
BOOST_FOREACH
(
LIB_DRAW_ITEM
&
item
,
m_Drawings
)
{
{
if
(
item
.
Type
()
!=
COMPONENT_PIN_DRAW_TYPE
||
if
(
item
.
Type
()
!=
COMPONENT_PIN_DRAW_TYPE
)
// we search pins only
(
unit
&&
item
.
m_Unit
!=
unit
)
||
continue
;
(
convert
&&
item
.
m_Convert
!=
convert
)
)
// Unit filtering:
if
(
unit
&&
item
.
m_Unit
&&
(
item
.
m_Unit
!=
unit
)
)
continue
;
// Shape filtering:
if
(
convert
&&
item
.
m_Convert
&&
(
item
.
m_Convert
!=
convert
)
)
continue
;
continue
;
pins
.
push_back
(
(
LIB_PIN
*
)
&
item
);
pins
.
push_back
(
(
LIB_PIN
*
)
&
item
);
...
...
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