irrXML "single char after specialChar" bug
Posted: Sat Apr 22, 2006 3:06 am
Example: <blabla myattr1="<sup>X"/>
The result of getAttributeValue() is "<sup>" and not "<sup>X".
It's a tiny bug in the replaceSpecialCharacters function (CXMLReaderImpl.h).
Here my bugfix:
// if (oldPos < origstr.size()-1)
if (oldPos <= origstr.size()-1)
newstr.append(origstr.subString(oldPos, origstr.size()-oldPos));
return newstr;
}
The result of getAttributeValue() is "<sup>" and not "<sup>X".
It's a tiny bug in the replaceSpecialCharacters function (CXMLReaderImpl.h).
Here my bugfix:
// if (oldPos < origstr.size()-1)
if (oldPos <= origstr.size()-1)
newstr.append(origstr.subString(oldPos, origstr.size()-oldPos));
return newstr;
}