Bug 81675

Summary: FILEOPEN: DOCX indent for list/heading incorrectly imported
Product: LibreOffice Reporter: Orbel <omkrtchyan>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED INVALID    
Severity: normal CC: barta, ilmari.lauhakangas, jorendc, michael.stahl, vmiklos, xiscofauli
Priority: medium Keywords: bibisected, bisected, filter:docx, regression
Version: 4.2.4.2 release   
Hardware: Other   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 104520    
Attachments: SourceDocument
bibisectlog
Text forced completely to the right
reduced test document

Description Orbel 2014-07-23 13:31:05 UTC
Created attachment 103336 [details]
SourceDocument

I am seeing some distortion when opening specific DOCX file, which is attached to the issue. This file is correctly opens in MS Word but have some broken parts in numbering when try to open it with LO Writer.
Comment 1 tommy27 2014-07-23 13:49:18 UTC
please post a comparative screenshot of the file in MS Word and LibO highlighting what you call "distortion"
Comment 2 Jorendc 2014-07-23 13:55:20 UTC
HI Orbel, thanks for your bug report.
I do see some odd indent behavior (complete text forced to the right margin of the page. Is that what you meant?
If not, can you please attach a screenshot of what you mean with 'some broken parts in the numbering'. If there are multiple issues which doesn't related to each other, please do create a bug report for each separate issue.

Kind regards,
Joren
Comment 3 Orbel 2014-07-23 13:59:14 UTC
Hi Jorendc
Yes, you're right, I do see the same behavior as you mentioned.

Best regards,
Orbel Mkrtchyan
Comment 4 Jorendc 2014-07-23 14:00:17 UTC
(In reply to comment #3)
> Hi Jorendc
> Yes, you're right, I do see the same behavior as you mentioned.

Okay, I'll attach a screenshot after I did run this bibisect. It is a regression.

Kind regards,
Joren
Comment 5 Jorendc 2014-07-23 14:02:49 UTC
Created attachment 103338 [details]
bibisectlog
Comment 6 Jorendc 2014-07-23 14:03:42 UTC
Created attachment 103339 [details]
Text forced completely to the right
Comment 7 Jorendc 2014-07-23 14:09:16 UTC
Probably a regression of http://cgit.freedesktop.org/libreoffice/core/commit/?id=2123ede032ca64f696ef54af4ad3238974ca2b5d

Thing is that Header3 style doesn't have a big indent, but the paragraph style of the erroneous text (header 3-style) do. So somehow this paragraph formatted differently (?direct formatting?).
Paragraph Indent before text = 45,06 which is causing this big shift to the right.

Kind regards,
Joren
Comment 8 Jorendc 2014-07-23 14:17:42 UTC
I did revert http://cgit.freedesktop.org/libreoffice/core/commit/?id=14d6cf1f8f86027d58fe56feae3139c314fbb058 and the huge right-shift is no more. So probably that patch is also related to this particular bug.
Comment 9 Jorendc 2014-07-23 15:27:05 UTC
Created attachment 103342 [details]
reduced test document
Comment 10 Michael Stahl (allotropia) 2014-07-24 13:13:50 UTC
perhaps CC:ing the author of the commit in comemnt #8 is a good idea :)
Comment 11 Björn Michaelsen 2014-10-16 14:59:07 UTC Comment hidden (obsolete)
Comment 12 Xisco Faulí 2015-09-07 15:54:58 UTC
This issue is still present in

Version: 5.0.1.2
Build ID: 81898c9f5c0d43f3473ba111d7b351050be20261
Locale: es-ES (es_ES)

on Windows 7 (64-bit)
Comment 13 Robinson Tryon (qubit) 2015-12-13 11:11:04 UTC Comment hidden (obsolete)
Comment 14 Xisco Faulí 2016-09-26 09:26:17 UTC
Adding Cc: to Miklos Vajna
Comment 15 Justin L 2017-11-02 13:34:04 UTC
Corrupt document. I wouldn't worry too much about this one.  In MSWord, go to the bullets and numbering context menu, and then without any further looking or changing, hit OK. The text will change to look like it does in LO.
Comment 16 Buovjaga 2017-11-06 16:45:20 UTC
(In reply to Justin L from comment #15)
> Corrupt document. I wouldn't worry too much about this one.  In MSWord, go
> to the bullets and numbering context menu, and then without any further
> looking or changing, hit OK. The text will change to look like it does in LO.

Ok, let's close.