[de] Fix reading documents with forms

This commit is contained in:
KirillovIlya
2024-02-21 18:38:07 +03:00
parent e086ec5618
commit 0f22772169

View File

@ -347,7 +347,10 @@ CInlineLevelSdt.prototype.Add_ToContent = function(Pos, Item, UpdatePosition)
{
History.Add(new CChangesParaFieldAddItem(this, Pos, [Item]));
CParagraphContentWithParagraphLikeContent.prototype.Add_ToContent.apply(this, arguments);
this.GetLogicDocument().OnChangeForm(this);
let logicDocument = this.GetLogicDocument();
if (logicDocument)
logicDocument.OnChangeForm(this);
};
CInlineLevelSdt.prototype.Remove_FromContent = function(Pos, Count, UpdatePosition)
{
@ -358,7 +361,10 @@ CInlineLevelSdt.prototype.Remove_FromContent = function(Pos, Count, UpdatePositi
var DeletedItems = this.Content.slice(Pos, Pos + Count);
History.Add(new CChangesParaFieldRemoveItem(this, Pos, DeletedItems));
CParagraphContentWithParagraphLikeContent.prototype.Remove_FromContent.apply(this, arguments);
this.GetLogicDocument().OnChangeForm(this);
let logicDocument = this.GetLogicDocument();
if (logicDocument)
logicDocument.OnChangeForm(this);
};
CInlineLevelSdt.prototype.OnContentChange = function()
{