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
c436f453
Commit
c436f453
authored
Feb 24, 2014
by
Martin Janitschke
Committed by
Wayne Stambaugh
Feb 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 3D viewer crash bug. (fixes lp:673603 and lp:804778)
parent
df8b7c53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
vrmlmodelparser.cpp
3d-viewer/vrmlmodelparser.cpp
+7
-2
No files found.
3d-viewer/vrmlmodelparser.cpp
View file @
c436f453
...
...
@@ -68,6 +68,8 @@ void VRML_MODEL_PARSER::Load( const wxString aFilename )
while
(
GetLine
(
file
,
line
,
&
LineNum
,
512
)
)
{
text
=
strtok
(
line
,
sep_chars
);
if
(
text
==
NULL
)
continue
;
if
(
stricmp
(
text
,
"DEF"
)
==
0
||
stricmp
(
text
,
"Group"
)
==
0
)
{
...
...
@@ -371,6 +373,9 @@ int VRML_MODEL_PARSER::readGeometry( FILE* file, int* LineNum )
strcpy
(
buffer
,
line
);
text
=
strtok
(
buffer
,
sep_chars
);
if
(
text
==
NULL
)
continue
;
if
(
*
text
==
'}'
)
{
err
=
0
;
...
...
@@ -381,7 +386,7 @@ int VRML_MODEL_PARSER::readGeometry( FILE* file, int* LineNum )
{
text
=
strtok
(
NULL
,
" ,
\t\n\r
"
);
if
(
stricmp
(
text
,
"true"
)
==
0
)
if
(
text
&&
stricmp
(
text
,
"true"
)
==
0
)
{
}
else
...
...
@@ -395,7 +400,7 @@ int VRML_MODEL_PARSER::readGeometry( FILE* file, int* LineNum )
{
text
=
strtok
(
NULL
,
" ,
\t\n\r
"
);
if
(
stricmp
(
text
,
"true"
)
==
0
)
if
(
text
&&
stricmp
(
text
,
"true"
)
==
0
)
{
}
else
...
...
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