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

            Bug ID: 147115
           Summary: docx import filter, wrong default paragraph style was
                    taken
           Product: LibreOffice
           Version: 7.4.0.0 alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: sven-jac...@gmx.de

Created attachment 177969
  --> https://bugs.documentfoundation.org/attachment.cgi?id=177969&action=edit
bugdoc

If you load the attached bugdoc in LibreOffice, then the wrong default
paragraph style is used. The document looks totaly wrong in LO compared to as
if loaded in Word.

In the styles.xml of the bugdoc there is the correct default style as followed:

<w:style w:type="paragraph"
   w:default="1"
   w:styleId="Standard">
   <w:name w:val="Normal"/>
   <w:qFormat/>
</w:style>

and the following style is overwriting the default when loaded in LO (just
because of the default = 0 value):

<w:style w:type="paragraph"
   w:styleId="Listenabsatz"
   w:default="0">
   <w:name w:val="List Paragraph"/>
   <w:basedOn w:val="Standard"/>
   <w:uiPriority w:val="34"/>
   <w:qFormat/>
   <w:rsid w:val="004E3BB8"/>
   <w:pPr>
      <w:ind w:left="720"/>
      <w:contextualSpacing/>
   </w:pPr>
</w:style>

My patch I commited to gerrit is fixing this problem:
https://gerrit.libreoffice.org/c/core/+/128811

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

Reply via email to