Merge pull request #547 from assimp/acgessler-patch-2
Fix one-off in STEPFileEncoding causing UTF32 character decoding to fail.pull/548/head
commit
2a7e49423a
|
@ -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] == '\\') {
|
||||||
|
|
Loading…
Reference in New Issue