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
Toggle navigation
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
f47d8894
Commit
f47d8894
authored
Feb 05, 2019
by
Martin Heistermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid endless loop on invalid files
parent
d7ccc04d
Pipeline
#8467
passed with stage
in 6 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/OpenVolumeMesh/FileManager/FileManager.cc
src/OpenVolumeMesh/FileManager/FileManager.cc
+2
-2
No files found.
src/OpenVolumeMesh/FileManager/FileManager.cc
View file @
f47d8894
...
...
@@ -154,7 +154,7 @@ bool FileManager::isHexahedralMesh(const std::string& _filename) const {
unsigned
int
n
=
0u
;
// Skip until we find polyhedra section
while
(
true
||
!
iff
.
eof
())
{
while
(
iff
.
good
())
{
iff
>>
s
;
if
(
s
==
"Polyhedra"
)
{
break
;
...
...
@@ -200,7 +200,7 @@ bool FileManager::isTetrahedralMesh(const std::string& _filename) const {
unsigned
int
n
=
0u
;
// Skip until we find polyhedra section
while
(
true
||
!
iff
.
eof
())
{
while
(
iff
.
good
())
{
iff
>>
s
;
if
(
s
==
"Polyhedra"
)
{
break
;
...
...
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