Skip to content

Commit

Permalink
[de] Fix reading documents with forms
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillovIlya committed Feb 21, 2024
1 parent e086ec5 commit 0f22772
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions word/Editor/StructuredDocumentTags/InlineLevel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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()
{
Expand Down

0 comments on commit 0f22772

Please sign in to comment.