Commit 6fe412aa authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix bug 33631

parent 19209cad
...@@ -6346,30 +6346,39 @@ background-repeat: no-repeat;\ ...@@ -6346,30 +6346,39 @@ background-repeat: no-repeat;\
break; break;
} }
var _len = Loader.Reader.GetLong(); var nChangeLen = stream.GetLong();
_pos += 4; _pos += 4;
stream.size = _pos + _len; stream.size = _pos + nChangeLen;
var _id = Loader.Reader.GetString2(); var ClassId = stream.GetString2();
var _read_pos = Loader.Reader.GetCurPos(); var Class = AscCommon.g_oTableId.Get_ById(ClassId);
var Type = Loader.Reader.GetLong(); var nReaderPos = stream.GetCurPos();
var Class = null; var nChangeType = stream.GetLong();
if (AscDFH.historyitem_type_HdrFtr === Type) if (Class)
{ {
Class = editor.WordControl.m_oLogicDocument.HdrFtr; var fChangesClass = AscDFH.changesFactory[nChangeType];
if (fChangesClass)
{
var oChange = new fChangesClass(Class);
oChange.ReadFromBinary(stream);
if (true === AscCommon.CollaborativeEditing.private_AddOverallChange(oChange))
oChange.Load(_color);
} }
else else
Class = g_oTableId.Get_ById(_id); {
AscCommon.CollaborativeEditing.private_AddOverallChange(data);
stream.Seek(_read_pos); stream.Seek(nReaderPos);
stream.Seek2(_read_pos); stream.Seek2(nReaderPos);
if (null != Class) Class.Load_Changes(stream, null, _color);
Class.Load_Changes(Loader.Reader, Loader.Reader2, _color); }
}
_pos += _len; _pos += nChangeLen;
stream.Seek2(_pos); stream.Seek2(_pos);
stream.size = data.length; stream.size = data.length;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment