Bug 81533 - FILEOPEN: DOCX: Incorrect paragraph style used in a table within a textbox
Summary: FILEOPEN: DOCX: Incorrect paragraph style used in a table within a textbox
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.4.2 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Tables DOCX-Textbox
  Show dependency treegraph
 
Reported: 2014-07-19 12:31 UTC by Jorendc
Modified: 2017-10-03 14:02 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Comparison pdf export of Word (left) and LibreOffice 4.4 (Right) (120.76 KB, image/png)
2014-07-19 12:31 UTC, Jorendc
Details
minimal testcase (9.30 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-07-20 05:59 UTC, tommy27
Details
Comparison between Libreoffice 5.0.0.5 (left) and Word 2010 (right) (72.18 KB, image/jpeg)
2015-08-19 11:01 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jorendc 2014-07-19 12:31:27 UTC
Created attachment 103102 [details]
Comparison pdf export of Word (left) and LibreOffice 4.4 (Right)

* download attachment 82182 [details]
* Open it in Word and LibreOffice
* Compare spacing of the text inside the frame.
(you can export it to PDF to see it clearer)

Behavior: As you can notice on the screenshot, there is a line spacing issue in LibreOffice

Tested using Version: 4.4.0.0.alpha0+
Build ID: eddd7646d672ea9b0561dacb09da224d098e531e
TinderBox: Win-x86@39, Branch:master, Time: 2014-07-18_06:42:50
Comment 1 tommy27 2014-07-20 05:59:33 UTC
Created attachment 103130 [details]
minimal testcase

hi Joren
I confirm wider spacing in text inside that frame at the bottom of the document.
however I see the same issue in 4.2.5.2 and older releases (tested up to 4.0.4.2) as well, not just in 4.4.x, so I'm updating version field

I'm attaching a minimal test case file to make debug easier.
Comment 2 Jorendc 2014-07-23 19:35:47 UTC
The paragraph style used in the table is used from following style block:

<w:style w:type="paragraph" w:customStyle="1" w:styleId="Textbody">
    <w:name w:val="Text body"/>
    <w:basedOn w:val="Normal"/>
    <w:uiPriority w:val="99"/>
    <w:rsid w:val="00291850"/>
    <w:pPr>
      <w:spacing w:after="120"/>
    </w:pPr>
</w:style>

Changing the w:after spacing from 120 to 0 results in a correct redering of the table.
Comment 3 Xisco Faulí 2015-08-19 11:01:11 UTC
Created attachment 118018 [details]
Comparison between Libreoffice 5.0.0.5 (left) and Word 2010 (right)

Problem still present in

Version: 5.0.0.5
Build ID: 1b1a90865e348b492231e1c451437d7a15bb262b
Locale: es-ES (es_ES)

on Windows 7 (64-bit)
Comment 4 Xisco Faulí 2015-08-19 11:01:55 UTC
Problem still present in

Version: 5.0.0.5
Build ID: 1b1a90865e348b492231e1c451437d7a15bb262b
Locale: es-ES (es_ES)

on Windows 7 (64-bit)
Comment 5 Robinson Tryon (qubit) 2015-12-09 18:44:55 UTC Comment hidden (obsolete)
Comment 6 Xisco Faulí 2017-10-03 14:02:37 UTC
I can no longer reproduce the issue in

Version: 6.0.0.0.alpha0+
Build ID: 34e8fd7e99489e9f50a512b07c6f3923b358b4d3
CPU threads: 4; OS: Linux 4.10; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

Closing as RESOLVED WORKSFORME

[Improvement found by office-interoperability-tools]