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
Hide 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,17 +1540,19 @@ MODULE* PCB_PARSER::parseMODULE( wxArrayString* aInitialComments ) throw( IO_ERR
...
@@ -1540,17 +1540,19 @@ MODULE* PCB_PARSER::parseMODULE( wxArrayString* aInitialComments ) throw( IO_ERR
wxCHECK_MSG
(
CurTok
()
==
T_module
,
NULL
,
wxCHECK_MSG
(
CurTok
()
==
T_module
,
NULL
,
wxT
(
"Cannot parse "
)
+
GetTokenString
(
CurTok
()
)
+
wxT
(
" as MODULE."
)
);
wxT
(
"Cannot parse "
)
+
GetTokenString
(
CurTok
()
)
+
wxT
(
" as MODULE."
)
);
wxPoint
pt
;
wxString
name
;
T
token
;
wxPoint
pt
;
FPID
fpid
;
T
token
;
FPID
fpid
;
auto_ptr
<
MODULE
>
module
(
new
MODULE
(
m_board
)
);
auto_ptr
<
MODULE
>
module
(
new
MODULE
(
m_board
)
);
module
->
SetInitialComments
(
aInitialComments
);
module
->
SetInitialComments
(
aInitialComments
);
NeedSYMBOLorNUMBER
();
NeedSYMBOLorNUMBER
();
name
=
FromUTF8
();
if
(
fpid
.
Parse
(
FromUTF8
()
)
>=
0
)
if
(
!
name
.
IsEmpty
()
&&
fpid
.
Parse
(
FromUTF8
()
)
>=
0
)
{
{
wxString
error
;
wxString
error
;
error
.
Printf
(
_
(
"invalid PFID in
\n
file: <%s>
\n
line: %d
\n
offset: %d"
),
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