Bug 99810 - FILESAVE DOCX: Lines lost when saved as DOCX
Summary: FILESAVE DOCX: Lines lost when saved as DOCX
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: bibisected, bisected, filter:docx, regression
Depends on:
Blocks: Shape-ODF-OOXML-export
  Show dependency treegraph
Reported: 2016-05-12 20:46 UTC by Ljiljan
Modified: 2020-09-03 06:20 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:

Working document (13.20 KB, application/vnd.oasis.opendocument.text)
2016-05-12 20:46 UTC, Ljiljan
Comparison (136.59 KB, application/pdf)
2016-05-12 20:47 UTC, Ljiljan
Stripped Down Line Issue (9.97 KB, application/vnd.oasis.opendocument.text)
2016-12-06 23:19 UTC, Luke
Arrows compared LO 7.1+ and MSO 2016 (69.06 KB, image/png)
2020-09-03 06:20 UTC, Timur

Note You need to log in before you can comment on or make changes to this bug.
Description Ljiljan 2016-05-12 20:46:30 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Build Identifier: LibreOffice

I decided to create some drawings in LibreOffice and to test it as it follows:
1. Open it in Microsoft Word 2007
2. Open it in Microsoft Word Online (their web version)
3. Re-open it with LibreOffice 

Reproducible: Always

Steps to Reproduce:
1.Download original file
2. Save it in DOC or DOCX
3. Open it with Microsoft Word or LibeOffice
Actual Results:  
DOC: text in rectangle-box is not rotate, the one line is shorter
DOCX: text in rectangle-box is rotate in MS Word 2007, but it is rotated in MS Word web version, but not as original, the lines are missing
LibreOffice (reopening DOCX): rectangle size is changed, text not shown as original, arrow lines are missing

Expected Results:  
Document should be shown correctly at least in LibreOffice, but as well as in Microsoft Word.

[Information automatically included from LibreOffice]
Locale: en-US
Module: TextDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes

Reset User Profile?No
Comment 1 Ljiljan 2016-05-12 20:46:50 UTC
Created attachment 125018 [details]
Working document
Comment 2 Ljiljan 2016-05-12 20:47:08 UTC
Created attachment 125019 [details]
Comment 3 Buovjaga 2016-05-15 15:49:42 UTC
Repro. Yet, separate reports should be created for all issues.

Arch Linux 64-bit, KDE Plasma 5
Build ID: 1dbdc947fcc9d843764731e6dae7ce60082576e0
CPU Threads: 8; OS Version: Linux 4.5; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8)
Built on May 14th 2016
Comment 4 Luke 2016-12-06 23:19:50 UTC
Created attachment 129361 [details]
Stripped Down Line Issue

One report should only have a single bug in it.[1]

Let's track the issue here with the arrows disappears export to docx.

The Text Boxes look good when opened in Word, so this may be a FILEOPEN issue that affects rotated/grouped text boxes. This is should be filed as a separate report.

The MS-DOC issue appears to be a limitation of the MS-DOC spec that I'm not sure is even a valid issue. 

[1] https://wiki.documentfoundation.org/QA/BugReport
Comment 5 Luke 2016-12-06 23:26:23 UTC
This is a regression. Saving with LO 4.2 resulted is the arrows being properly exported. They could be opening in both LO 4.2 and Word 2013.
Comment 6 raal 2016-12-17 20:51:58 UTC
repro Version:
Comment 8 QA Administrators 2018-09-10 02:36:42 UTC Comment hidden (obsolete)
Comment 9 Roman Kuznetsov 2018-09-11 10:34:15 UTC
still repro in on Windows 7
Comment 10 Luke 2018-09-11 16:05:08 UTC
Still repo in Version: (x64)
Build ID: 12637b0f83b3a3d9d740882e0e8e7cc0a442cde2

There is some attribute of these lines that is confusing the exporter. Normal lines export to .docx fine.
Comment 11 Aron Budea 2019-04-15 03:04:21 UTC
This, too started at the following commit, like bug 112312 and bug 122962. I assume this is rather an implementation error, than a regression, but let's keep the keywords that match the user perspective.

author		Miklos Vajna <vmiklos@collabora.co.uk>	2013-12-18 11:03:57 +0100
committer	Miklos Vajna <vmiklos@collabora.co.uk>	2013-12-18 11:09:47 +0100

DocxAttributeOutput::OutputFlyFrame_Impl: enable DML export by default
Comment 12 Timur 2020-09-03 06:20:58 UTC
Created attachment 165060 [details]
Arrows compared LO 7.1+ and MSO 2016

Repro 7.1+ for DOC in LO and DOCX in LO and MSO.