Fix test Text

This commit is contained in:
Svetlana Kulikova
2025-01-28 11:12:35 +03:00
parent dd02c9594b
commit dabedf6121
2 changed files with 3 additions and 3 deletions

View File

@ -1413,11 +1413,11 @@ CFile.prototype["readAnnotationsInfoFromBinary"] = function(AnnotInfo)
while (reader.isValid())
{
let nCommand = reader.readByte();
let nPos = reader.GetCurPosition();
let nPos = reader.pos;
let nSize = reader.readInt();
if (nCommand != 164) // ctAnnotField
{
reader.Seek(nPos + nSize);
reader.pos = nPos + nSize;
continue;
}
let rec = {};

View File

@ -76,7 +76,7 @@ CBinaryReader.prototype.readString2 = function()
for (let i = 0; i < len; ++i)
{
let c = this.readShort();
val += String.prototype.fromCharCode(c);
val += String.fromCharCode(c);
}
return val;
};