https://bugs.documentfoundation.org/show_bug.cgi?id=173775

BogdanB <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Regression By|                            |Miklos Vajna
           Keywords|bibisectRequest             |bibisected, bisected

--- Comment #17 from BogdanB <[email protected]> ---
commit 4a7ea75108c842e95af769cd246fccf5064fd1f7
Author: Miklos Vajna <[email protected]>
Date:   Thu Jan 29 08:37:37 2026 +0100

    cool#13988 DOCX export: fix missing delete flag on deleted comments with
ranges

    Load the bugdoc, see that the comment is marked as deleted (is anchored
    inside a delete redline), save, reload, the comment is no longer
    deleted.

    This is because we write redline start/end around DOCX "runs", and the
    comment reference dummy character is one such dummy run. So unless
    explicit redline markup is written, comments (their comment reference)
    is not inside a redline.

    Fix this by checking if we'll write comment references (part of comment
    end) in DocxAttributeOutput::EndRun(). If we're inside a delete, write
    the delete redline markup around the comment reference, too.

    Doing the same for inserts would make sense, but then first we would
    need to tweak Writer's UI to insert new comments outside redlines,
    otherwise UITest_writer_tests7's
    tdf90401.tdf90401.test_tdf142902_remove_personal_info_in_DOCX would
    break.

    Change-Id: I8d6db05c8a9fd1d5e1e619843967e3f21fb43e59
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198353
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <[email protected]>
    (cherry picked from commit a72506da82d2e0334e23a8c3c1cd07282fdd7ca3)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198364
    Reviewed-by: Adolfo Jayme Barrientos <[email protected]>

Miklos Vajna, please can you take a look?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to