Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Andrew Bauer
VTK
Commits
0e0674a3
Commit
0e0674a3
authored
Oct 15, 2012
by
Dave DeMarle
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '13101_fix_stl_ascii_reader_rel' into release
Change-Id: I83d02922b9bf812a09361725cd670168b8b395d6
parents
1dfe95d3
7e34e013
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
IO/vtkSTLReader.cxx
IO/vtkSTLReader.cxx
+10
-5
No files found.
IO/vtkSTLReader.cxx
View file @
0e0674a3
...
...
@@ -442,12 +442,17 @@ int vtkSTLReader::ReadASCIISTL(FILE *fp, vtkPoints *newPts,
{
if
(
!
fgets
(
line
,
255
,
fp
))
{
vtkErrorMacro
(
"STLReader error reading file: "
<<
this
->
FileName
<<
" Premature EOF while reading end solid."
);
fclose
(
fp
);
return
0
;
// if fgets() returns an error, it may be due to the fact that the EOF
// is reached (BUG #13101) hence we test again.
done
=
feof
(
fp
);
if
(
!
done
)
{
vtkErrorMacro
(
"STLReader error reading file: "
<<
this
->
FileName
<<
" Premature EOF while reading end solid."
);
fclose
(
fp
);
return
0
;
}
}
done
=
feof
(
fp
);
}
...
...
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