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
1b831ccc
Commit
1b831ccc
authored
May 03, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed recent minor bug in Cvpcb (footprint name error when read from netlist)
parent
97ede2a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
18 deletions
+5
-18
readschematicnetlist.cpp
cvpcb/readschematicnetlist.cpp
+5
-18
No files found.
cvpcb/readschematicnetlist.cpp
View file @
1b831ccc
...
...
@@ -90,7 +90,6 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist()
{
char
alim
[
1024
];
int
idx
,
jj
,
k
,
l
;
char
*
LibName
;
char
cbuffer
[
BUFFER_CHAR_SIZE
];
/* temporary storage */
char
*
ptchar
;
COMPONENT
*
Cmp
;
...
...
@@ -193,10 +192,8 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist()
while
(
Line
[
idx
]
==
' '
)
idx
++
;
/* idx points the component value */
LibName
=
Line
+
idx
;
/* Read value */
/* idx points the component value.
* Read value */
ptchar
=
strstr
(
&
Line
[
idx
],
" "
);
// Search end of value field (space)
if
(
ptchar
==
0
)
{
...
...
@@ -215,6 +212,8 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist()
cbuffer
[
jj
++
]
=
Line
[
idx
];
}
cbuffer
[
jj
]
=
0
;
// Copy footprint name:
if
(
m_isEESchemaNetlist
&&
(
strnicmp
(
cbuffer
,
"$noname"
,
7
)
!=
0
)
)
Cmp
->
m_Module
=
CONV_FROM_UTF8
(
cbuffer
);
if
(
(
Line
[
++
idx
]
==
'('
)
&&
(
Line
[
k
-
1
]
==
')'
)
)
...
...
@@ -261,18 +260,6 @@ int WinEDA_CvpcbFrame::ReadSchematicNetlist()
m_components
.
push_back
(
Cmp
);
if
(
m_isEESchemaNetlist
)
/* copy footprint name: */
{
if
(
strnicmp
(
LibName
,
"$noname"
,
7
)
!=
0
)
{
while
(
*
LibName
>
' '
)
{
Cmp
->
m_Module
.
Append
(
*
LibName
);
LibName
++
;
}
}
}
ReadPinConnection
(
netlistReader
,
Cmp
);
}
...
...
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