From f2901a3dc74138d611a6c6ef0cc2df5b622728d1 Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Tue, 25 Nov 2025 21:51:40 +0300 Subject: [PATCH] Fix bug #77996 Don't allow to insert other forms inside a fixed labeled checkbox --- api.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api.js b/api.js index d4133e6..58b1730 100644 --- a/api.js +++ b/api.js @@ -737,6 +737,10 @@ window["AscOForm"] = window.AscOForm = AscOForm; { let form = logicDocument.GetContentControl(); + let mainForm = form ? form.GetMainForm() : null; + if (mainForm && mainForm.IsLabeledCheckBox()) + return mainForm.MoveCursorOutsideForm(false); + if (!form || !form.IsForm() || (form.IsComplexForm() && !isComplex)) return;