From 2771cd36610ec2a0088e6ee18a7f3d37ebf7d107 Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Sat, 1 Nov 2025 20:52:38 +0300 Subject: [PATCH] Fix bug #77996 Add forms after current labeled checkbox --- .../Editor/StructuredDocumentTags/InlineLevel.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/word/Editor/StructuredDocumentTags/InlineLevel.js b/word/Editor/StructuredDocumentTags/InlineLevel.js index 8c817f70aa..bb38752d00 100644 --- a/word/Editor/StructuredDocumentTags/InlineLevel.js +++ b/word/Editor/StructuredDocumentTags/InlineLevel.js @@ -89,6 +89,22 @@ CInlineLevelSdt.prototype.Add = function(Item) this.SetDefaultTextPr(oTempTextPr); return; } + + if (this.IsLabeledCheckBox() && (Item instanceof AscWord.CInlineLevelSdt)) + { + if (this.IsFixedForm()) + return; + + let parent = this.GetParent(); + let posInParent = this.GetPosInParent(parent); + if (-1 !== posInParent && parent) + { + parent.AddToContent(posInParent + 1, Item); + Item.MoveCursorToContentControl(true); + } + + return; + } this.private_ReplacePlaceHolderWithContent();