<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 - FILEOPEN DOCX Pasted TOC on reject is not entirely removed"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=138084">138084</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FILEOPEN DOCX Pasted TOC on reject is not entirely removed
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.3.0.4 release
          </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>Keywords</th>
          <td>filter:docx
          </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>115709
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=167119" name="attach_167119" title="Example file from Word">attachment 167119</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=167119&action=edit" title="Example file from Word">[details]</a></span>
Example file from Word

Attached document contains a TOC that was copied from another document
(<span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=167115" name="attach_167115" title="Example file from Word with moved TOC">attachment #167115</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=167115&action=edit" title="Example file from Word with moved TOC">[details]</a></span> ) and pasted.
When this is opened in Writer and all the changes rejected the empty TOC and
its title remain, while in Word rejecting the changes removes it completely.

Steps to reproduce:
    1. Open attached document
    2. Reject all changes

Actual results:
Title of the TOC and its field remains.

Expected results:
All of the TOC removed.

LibreOffice details:
Version: 7.1.0.0.alpha1+ (x64)
Build ID: 00e5c63c35307faacf76a5e2ca7953c4208244ed
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL

Also in:
Version: 6.3.0.4 (x86)
Build ID: 057fc023c990d676a43019934386b85b21a9ee99
CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; 
Locale: hu-HU (hu_HU); UI-Language: en-US
Calc: CL

In 6.2 the title was also rejected, but a bit of TOC field still remained:
Version: 6.2.0.3
Build ID: 98c6a8a1c6c7b144ce3cc729e34964b47ce25d62
CPU threads: 4; OS: Windows 6.3; UI render: GL; VCL: win; 
Locale: hu-HU (hu_HU); UI-Language: en-US
Calc: threaded</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] DOCX (OOXML) Tracking changes-related issues"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=115709">Bug 115709</a>] [META] DOCX (OOXML) Tracking changes-related issues
              </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>