Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
be8bb943
Commit
be8bb943
authored
Feb 11, 2016
by
Alexander Dielen
Committed by
Jan Möbius
Feb 12, 2016
Browse files
Fixed CR LF newline handling for binary file headers.
(cherry picked from commit
04fc8dac
)
parent
97b38abd
Pipeline
#882
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/IO/reader/PLYReader.cc
View file @
be8bb943
...
...
@@ -1275,7 +1275,19 @@ bool _PLYReader_::can_u_read(std::istream& _is) const {
// As the binary data is directy after the end_header keyword
// and the stream removes too many bytes, seek back to the right position
if
(
options_
.
is_binary
())
{
_is
.
seekg
(
streamPos
+
12
);
_is
.
seekg
(
streamPos
);
char
c1
=
0
;
char
c2
=
0
;
_is
.
get
(
c1
);
_is
.
get
(
c2
);
if
(
c1
==
0x0D
&&
c2
==
0x0A
)
{
_is
.
seekg
(
streamPos
+
14
);
}
else
{
_is
.
seekg
(
streamPos
+
12
);
}
}
return
true
;
...
...
Write
Preview
Supports
Markdown
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