Fix one-off in STEPFileEncoding causing UTF32 character decoding to fail.

pull/547/head
Alexander Gessler 2015-04-30 02:37:35 +02:00
parent 880cb473b0
commit 78faabf0fa
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] == '\\') {