[Libreoffice-bugs] [Bug 143722] New: FILEOPEN DOCX Imported TOC Heading style replaced with Writers own on update

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Aug 4 13:54:41 UTC 2021


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

            Bug ID: 143722
           Summary: FILEOPEN DOCX Imported TOC Heading style replaced with
                    Writers own on update
           Product: LibreOffice
           Version: 5.1.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: bibisected, bisected, filter:docx, regression
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: libreoffice at nisz.hu
                CC: nemeth at numbertext.org, varga.balazs3 at nisz.hu,
                    vmiklos at collabora.com

Created attachment 174072
  --> https://bugs.documentfoundation.org/attachment.cgi?id=174072&action=edit
Screenshot of the original document side by side in Word and Writer

When a TOC in a DOCX file is opened its heading style is imported as “TOC
Heading”. By default this has a blue text color and Calibri Light font in Word.
Upon updating the TOC this is replaced with Writers default heading style,
Contents Heading which has black color and Liberation Sans font, changing the
appearance of the TOC.

Steps to reproduce:
    1. Open a Word-made document with default TOC, such as attachment 143804
from bug 118972
    2. Check that the TOC title (“Contents”) has the TOC Heading style, blue
and Calibri Light font
    3. Right click the TOC, select Update Index

Actual results:
The TOC title gets Contents Heading style, black and Liberation Sans font.

Expected results:
The TOC Heading styles settings should be imported onto the Contents Heading
style, so they would survive the TOC update unchanged.

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

and in 5.1, but not yet in 5.0. The TOC Heading styles settings were imported
correctly so the Contents Heading was blue, Calibri Light. 
The update of TOC did not change the style back then, because the title was
imported incorrectly as a separate paragraph until 6.3.

Additional Information:
Bibisected using bibisect-win32-5.1 to:
URL:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=70f3c595cae858e97616bf1f23adea8a75e42d4b 
author   Miklos Vajna <vmiklos at collabora.co.uk> 2015-11-16 20:41:32 +0100
committer       Miklos Vajna <vmiklos at collabora.co.uk>  2015-11-16 20:42:30
+0100

tdf#83300 DOCX import: 'TOC Heading' should not be 'keep with next' by default

Adding CC to: Miklos Vajna

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210804/ac2946d1/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list