1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0023864: An & symbol is read incorrectly from a XML Ocaf file

A line is uncommented. This line sets the successfully read & symbol.
Correction and adding test cases for issue CR23864
This commit is contained in:
vro
2013-08-15 16:28:11 +04:00
committed by bugmaster
parent d3c5411b48
commit 80cd454f1d
3 changed files with 23 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ char * LDOM_CharReference::Decode (char * theSrc, Standard_Integer& theLen)
}
else if (IS_EQUAL(aSrcPtr+1, "amp;")) {
aDstPtr = aSrcPtr - anIncrCount + 1;
// aDstPtr[-1] = '&';
aDstPtr[-1] = '&';
anIncrCount += 4;
aSrcPtr += 5;
}