<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - EDITING Comment range lost in deletions-in-margin mode"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=140982">140982</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>EDITING Comment range lost in deletions-in-margin mode
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.2.0.0.alpha0+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>libreoffice@nisz.hu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>nemeth@numbertext.org
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>137770
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=170438" name="attach_170438" title="attachment #139963 after disabling deletions-in-margin mode">attachment 170438</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=170438&action=edit" title="attachment #139963 after disabling deletions-in-margin mode">[details]</a></span>
<span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=139963" name="attach_139963" title="sample">attachment #139963</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=139963&action=edit" title="sample">[details]</a></span> after disabling deletions-in-margin mode

This is a followup to <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Comment position on deleted track change not preserved"
   href="show_bug.cgi?id=115815">bug #115815</a>
When a comment is added to a range of deleted text and deletions-in-margin mode
is activated and deactivated then the range of the comment is lost and it’s
reduced to a point of text.

Steps to reproduce:
    1. Open <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=139963" name="attach_139963" title="sample">attachment #139963</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=139963&action=edit" title="sample">[details]</a></span>
    2. Select the deleted word “Bilal” and add a comment on it.
    3. In the Track Changes toolbar turn on and off the Deletion on Margins
mode

Actual results:
The comment is not on the deleted word “Bilal” but at the end of it.

Expected results:
The comment range is retained.

LibreOffice details:
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 2fb274950e5207ca55f4f52325fb522bd44024e1
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Tracked changes in margin"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=137770">Bug 137770</a>] [META] Tracked changes in margin
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>