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
2810f5a5
Commit
2810f5a5
authored
Jun 13, 2013
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix error message in legacy_plugin
parent
dea9dd23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
legacy_plugin.cpp
pcbnew/legacy_plugin.cpp
+6
-4
No files found.
pcbnew/legacy_plugin.cpp
View file @
2810f5a5
...
...
@@ -1165,7 +1165,9 @@ void LEGACY_PLUGIN::loadPAD( MODULE* aModule )
// sscanf( PtLine, " %s %d %d %d %d %d", BufCar, &m_Size.x, &m_Size.y, &m_DeltaSize.x, &m_DeltaSize.y, &m_Orient );
while
(
isSpace
(
*
data
)
)
++
data
;
int
padshape
=
*
data
++
;
unsigned
char
padchar
=
(
unsigned
char
)
*
data
++
;
int
padshape
;
BIU
size_x
=
biuParse
(
data
,
&
data
);
BIU
size_y
=
biuParse
(
data
,
&
data
);
...
...
@@ -1173,7 +1175,7 @@ void LEGACY_PLUGIN::loadPAD( MODULE* aModule )
BIU
delta_y
=
biuParse
(
data
,
&
data
);
double
orient
=
degParse
(
data
);
switch
(
pad
shape
)
switch
(
pad
char
)
{
case
'C'
:
padshape
=
PAD_CIRCLE
;
break
;
case
'R'
:
padshape
=
PAD_RECT
;
break
;
...
...
@@ -1181,8 +1183,8 @@ void LEGACY_PLUGIN::loadPAD( MODULE* aModule )
case
'T'
:
padshape
=
PAD_TRAPEZOID
;
break
;
default
:
m_error
.
Printf
(
_
(
"Unknown padshape '%c=0x%02x' on line:%d of module:'%s'"
),
(
unsigned
char
)
padshape
,
(
unsigned
char
)
padshape
,
padchar
,
padchar
,
m_reader
->
LineNumber
(),
GetChars
(
aModule
->
GetLibRef
()
)
);
...
...
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