Merge pull request #547 from assimp/acgessler-patch-2

Fix one-off in STEPFileEncoding causing UTF32 character decoding to fail.
pull/548/head
Alexander Gessler 2015-04-30 15:19:01 +02:00
commit 2a7e49423a
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ bool STEP::StringToUTF8(std::string& s)
case '4': case '4':
if (s[i+3] == '\\') { if (s[i+3] == '\\') {
const size_t basei = i+4; const size_t basei = i+4;
size_t j = basei, jend = s.size()-4; size_t j = basei, jend = s.size()-3;
for (; j < jend; ++j) { for (; j < jend; ++j) {
if (s[j] == '\\' && s[j] == 'X' && s[j] == '0' && s[j] == '\\') { if (s[j] == '\\' && s[j] == 'X' && s[j] == '0' && s[j] == '\\') {