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
028b0bd3
Commit
028b0bd3
authored
Sep 17, 2013
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix board parsing error when module name is empty. (fixes lp:1226546)
parent
0224bc2f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
pcb_parser.cpp
pcbnew/pcb_parser.cpp
+6
-4
No files found.
pcbnew/pcb_parser.cpp
View file @
028b0bd3
...
...
@@ -1540,6 +1540,7 @@ MODULE* PCB_PARSER::parseMODULE( wxArrayString* aInitialComments ) throw( IO_ERR
wxCHECK_MSG
(
CurTok
()
==
T_module
,
NULL
,
wxT
(
"Cannot parse "
)
+
GetTokenString
(
CurTok
()
)
+
wxT
(
" as MODULE."
)
);
wxString
name
;
wxPoint
pt
;
T
token
;
FPID
fpid
;
...
...
@@ -1549,8 +1550,9 @@ MODULE* PCB_PARSER::parseMODULE( wxArrayString* aInitialComments ) throw( IO_ERR
module
->
SetInitialComments
(
aInitialComments
);
NeedSYMBOLorNUMBER
();
name
=
FromUTF8
();
if
(
fpid
.
Parse
(
FromUTF8
()
)
>=
0
)
if
(
!
name
.
IsEmpty
()
&&
fpid
.
Parse
(
FromUTF8
()
)
>=
0
)
{
wxString
error
;
error
.
Printf
(
_
(
"invalid PFID in
\n
file: <%s>
\n
line: %d
\n
offset: %d"
),
...
...
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