<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 - FILESAVE DOCX TOC Heading style changes name on save"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=143726">143726</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FILESAVE DOCX TOC Heading style changes name on save
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>5.2.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>bibisected, bisected, filter:docx, regression
          </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>marklh9@gmail.com, nemeth@numbertext.org, varga.balazs3@nisz.hu
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>104524
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=174076" name="attach_174076" title="Example file from Writer">attachment 174076</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=174076&action=edit" title="Example file from Writer">[details]</a></span>
Example file from Writer

When a new TOC is inserted to a Writer document its title gets the “Contents
Heading” style.
When saved as docx this name is changed to “TOA Heading” which belongs to a
different object, a “Table of Authorities” in Word.
This could cause roundtrip issues in case <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - FILEOPEN DOCX Imported TOC Heading style replaced with Writers own on update"
   href="show_bug.cgi?id=143722">bug 143722</a> is fixed.

Steps to reproduce:
    1. Open attached example file
    2. Notice the TOC heading has “Contents Heading” style
    3. Save as DOCX, reopen

Actual results:
The TOC heading has now “TOA Heading” style.

Expected results:
TOC heading keeps its “Contents Heading” style.

LibreOffice details:
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: ad1b12686da88bea57582df10fa85268ada209b8
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL

Also in 7.0, 6.0, 5.2.
Not yet in 5.1.

Additional Information:
Bibisected using bibisect-win32-5.2 to:
URL:
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=78284714b73a8307174c596295894e8f3951e09a">https://cgit.freedesktop.org/libreoffice/core/commit/?id=78284714b73a8307174c596295894e8f3951e09a</a> 

author  Mark Hung <<a href="mailto:marklh9@gmail.com">marklh9@gmail.com</a>>   2016-02-04 00:53:01 +0800
committer       Mark Hung <<a href="mailto:marklh9@gmail.com">marklh9@gmail.com</a>>   2016-02-13 15:22:52 +0000
commit  78284714b73a8307174c596295894e8f3951e09a (patch)

<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Outline Numbering for DOCX not working when new headings inserted in between (to reproduce, see comment 15/17/19)"
   href="show_bug.cgi?id=76817">tdf#76817</a>: fix missing heading styles assigned to outline levels in ooxml

Adding CC to:  Mark Hung</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) Table of Contents (ToC) and Index related issues"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=104524">Bug 104524</a>] [META] DOCX (OOXML) Table of Contents (ToC) and Index 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>