Created attachment 192679 [details] Minimal reproducer Steps to reproduce the problem: 1) Open the attached document 2) Navigate with the cursor to the middle of the "first" word in the 2nd paragraph. Expected result: the cursor is outside the content control around the checkbox character (unchecked). Actual result: the "first" word is part of the content control (black frame appear around "first☐"). The "first" word is not part of the <w:sdt> element when you check it in Word or you check the XML markup manually. Version: core.git master commit 1b0f67018fa1d514ebca59e081efdd24c1d7811b (docx import: correct redline content-controls, 2024-02-20), earlier versions didn't even open the document.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/833abb4a197561c34ec59cceb9d7d8a46f6b17ce tdf#159815 DOCX import: fix redlined to-char image followed by inline SDT It will be available in 24.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-24-2": https://git.libreoffice.org/core/commit/b973805565be06aac4422fbb7af530fe8ee04bd0 tdf#159815 DOCX import: fix redlined to-char image followed by inline SDT It will be available in 24.2.2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.