Bug 73976 - FILESAVE ODT->DOCX: grouped drawing objects gets arrows slightly moved and changed front/back order
Summary: FILESAVE ODT->DOCX: grouped drawing objects gets arrows slightly moved and ch...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:doc, filter:docx
Depends on:
Blocks: RTF DOCX-Grouped-Shapes Z-Order
  Show dependency treegraph
 
Reported: 2014-01-23 13:42 UTC by Ivan Sorokin
Modified: 2024-01-18 21:56 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
original Writer file (18.30 KB, application/vnd.oasis.opendocument.text)
2014-01-23 13:42 UTC, Ivan Sorokin
Details
as saved by Writer to .doc (Word 97) format (20.50 KB, application/msword)
2014-01-23 13:43 UTC, Ivan Sorokin
Details
as saved by Writer to .docx format (5.46 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-01-23 13:43 UTC, Ivan Sorokin
Details
as saved by Writer to .rtf format (25.82 KB, application/rtf)
2014-01-23 13:43 UTC, Ivan Sorokin
Details
sample.doc in MS Word screenshot (93.67 KB, image/png)
2014-01-23 13:44 UTC, Ivan Sorokin
Details
sample.doc in LO Writer screenshot (101.59 KB, image/png)
2014-01-23 13:44 UTC, Ivan Sorokin
Details
sample.docx in MS Word screenshot (93.37 KB, image/png)
2014-01-23 13:45 UTC, Ivan Sorokin
Details
sample.docx in LO Writer screenshot (66.84 KB, image/png)
2014-01-23 13:45 UTC, Ivan Sorokin
Details
sample.rtf in MS Word screenshot (95.36 KB, image/png)
2014-01-23 13:45 UTC, Ivan Sorokin
Details
sample.rtf in LO Writer screenshot (79.11 KB, image/png)
2014-01-23 13:45 UTC, Ivan Sorokin
Details
screenshot of source.odt file in Writer (reference rendering) (98.93 KB, image/png)
2014-01-23 13:46 UTC, Ivan Sorokin
Details
How it looks in LibreOffice 6.1 (124.21 KB, image/png)
2018-01-26 16:55 UTC, Xisco Faulí
Details
Simplified example file for the Z-order problem (11.59 KB, application/vnd.oasis.opendocument.text)
2021-01-26 10:54 UTC, NISZ LibreOffice Team
Details
The simplified example file saved as docx (5.69 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-01-26 10:56 UTC, NISZ LibreOffice Team
Details
Screenshot of the minimized example file and its docx export in Writer 7.2master (79.44 KB, image/png)
2021-01-26 10:57 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Sorokin 2014-01-23 13:42:10 UTC
Created attachment 92660 [details]
original Writer file

Problem description: 

See attached sample.odt

Writer can not save it correctly to any of microsoft-compatible file formats. Screenshots attached. Checked with MS Office Word 14.0.7106.5003 (32-bit). Generated files looks distorted not only in Word, but in Writer itself.

Steps to reproduce:
1. Open attached sample.odt
2. Save to .doc (Word 97) or .docx or .rtf format
3. Open saved file in MS Word or LO Writer to see graphics distorsion.

Current behavior:
Graphics object is not saved correctly in .doc, .docx and .rft formats.

Expected behavior:
Writer must save graphic object correctly.

Attachments explained:

sample.odt - original Writer file
sample_odt_original.png - screenshot of source.odt file in Writer (reference rendering)

sample.doc - as saved by Writer to .doc (Word 97) format
sample_doc_word.png - sample.doc in MS Word screenshot
sample_doc_writer.png - sample.doc in LO Writer screenshot

sample.docx - as saved by Writer to .docx format
sample_docx_word.png - sample.docx in MS Word screenshot
sample_docx_writer.png - sample.docx in LO Writer screenshot

sample.rtf - as saved by Writer to .rtf format
sample_rft_word.png - sample.rtf in MS Word screenshot
sample_rtf_writer.png - sample.rtf in LO Writer screenshot


Operating System: Windows 7
Version: 4.1.3.2 release
Comment 1 Ivan Sorokin 2014-01-23 13:43:11 UTC
Created attachment 92661 [details]
as saved by Writer to .doc (Word 97) format
Comment 2 Ivan Sorokin 2014-01-23 13:43:29 UTC
Created attachment 92662 [details]
as saved by Writer to .docx format
Comment 3 Ivan Sorokin 2014-01-23 13:43:48 UTC Comment hidden (no-value)
Comment 4 Ivan Sorokin 2014-01-23 13:44:24 UTC
Created attachment 92664 [details]
sample.doc in MS Word screenshot
Comment 5 Ivan Sorokin 2014-01-23 13:44:44 UTC
Created attachment 92665 [details]
sample.doc in LO Writer screenshot
Comment 6 Ivan Sorokin 2014-01-23 13:45:02 UTC
Created attachment 92666 [details]
sample.docx in MS Word screenshot
Comment 7 Ivan Sorokin 2014-01-23 13:45:14 UTC
Created attachment 92667 [details]
sample.docx in LO Writer screenshot
Comment 8 Ivan Sorokin 2014-01-23 13:45:26 UTC Comment hidden (no-value)
Comment 9 Ivan Sorokin 2014-01-23 13:45:38 UTC Comment hidden (no-value)
Comment 10 Ivan Sorokin 2014-01-23 13:46:09 UTC
Created attachment 92670 [details]
screenshot of source.odt file in Writer (reference rendering)
Comment 11 tommy27 2014-01-25 12:18:52 UTC
I reproduce this under Win7 64bit with LibO 4.1.4.2
Comment 12 Joel Madero 2015-05-02 15:42:28 UTC Comment hidden (obsolete)
Comment 13 Buovjaga 2015-06-20 16:13:39 UTC
Yep, still a chaotic arrow party with doc/docx/rtf saves.

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+
Build ID: 3ecef8cedb215e49237a11607197edc91639bfcd
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2015-06-19_23:16:58
Locale: fi-FI (fi_FI)
Comment 14 QA Administrators 2016-09-20 10:12:03 UTC Comment hidden (obsolete)
Comment 15 Telesto 2016-12-07 08:18:50 UTC
Still reproducible with:
Version: 5.4.0.0.alpha0+
Build ID: 2bad9f1cd8da0cd3d8ff33e875eaf10c1fd9d0bf
CPU Threads: 4; OS Version: Mac OS X 10.12.1; UI Render: default; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2016-11-29_01:04:44
Locale: nl-NL (nl_NL.UTF-8); Calc: group
Comment 16 Xisco Faulí 2017-10-31 13:10:14 UTC
it seems much better in 

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

if document is exported to DOCX.

Exporting to .DOC is broken in master by bug 113254
Comment 17 Xisco Faulí 2018-01-26 16:55:32 UTC
Created attachment 139381 [details]
How it looks in LibreOffice 6.1

They look pretty similar in

Version: 6.1.0.0.alpha0+
Build ID: 5cb225b0b3dbb55fd44899b1fb16bdcfeb866849
CPU threads: 4; OS: Linux 4.10; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group threaded
Comment 18 QA Administrators 2019-01-27 03:46:24 UTC Comment hidden (obsolete)
Comment 19 Ivan Sorokin 2019-01-27 16:21:17 UTC
Retested with LibreOffice 6.0.7.3, build ID 1:6.0.7-0ubuntu0.18.04.2

Have no MSO currently to retest completely, opened saved .doc in LO.

Some distortions are still present.
Comment 20 Timur 2020-04-03 06:44:52 UTC
Mixed up report. It's not complex graphic object, but grouped drawing objects.
Arrows are just slightly moved. Those that appear, they really exist, they are just behind light blue square that is foreground. 

DOC and DOCX are similar and pretty good, so makes sense to keep them both here (unless only one is resolved).
RTF is very wrong, unlikely to be resolved with others and needs another bug report, so I'll remove from the title and hide posts.
Comment 21 NISZ LibreOffice Team 2021-01-26 10:54:25 UTC
Created attachment 169148 [details]
Simplified example file for the Z-order problem

This file was made by reducing the example file of attachment #92660 [details] to not contain grouped shapes anymore.

The change of Z-order still happens on DOCX export with: 

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 6c8a6b6aa2f962bd2fadbdf27405bfcd7d167fec
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL
Comment 22 NISZ LibreOffice Team 2021-01-26 10:56:21 UTC
Created attachment 169149 [details]
The simplified example file saved as docx
Comment 23 NISZ LibreOffice Team 2021-01-26 10:57:47 UTC
Created attachment 169150 [details]
Screenshot of the minimized example file and its docx export in Writer 7.2master
Comment 24 Gabor Kelemen (allotropia) 2022-01-16 18:11:51 UTC
Still the same (also in Word 2013) as on the last screenshot in:

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 3b48e20b0101584a5e7ef48ba82238e735f0772b
CPU threads: 13; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded
Comment 25 QA Administrators 2024-01-17 03:12:58 UTC Comment hidden (obsolete, spam)
Comment 26 Gabor Kelemen (allotropia) 2024-01-18 18:19:29 UTC
Still happens for docx/rtf (but not doc) in

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ef6083200a4f28e43198c7a0878da6f4b880725f
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Calc: threaded
Comment 27 Justin L 2024-01-18 21:56:44 UTC
This bug report is affected by compat15 layout issues.
Since 7.0, LibreOffice exports ODT->DOCX as compat15. In the case of compat15 (MS Word 2013+) the arrows are supposed to show up above the shape. So the import side is fine since both non-obsolete MS Word and LibreOffice see it the same way.

That confirms that this is an export issue. I'm not sure how valid it is though because MS formats have a limitation where they ignore settings like behindDoc in the current situation. So unless the exporter
1.) becomes aware that the current situation is problematic for modern MS DOCX
2.) emulates some kind of workaround to get the desired effect.
this problem will persist (until an ancient MS Word user round-trips it).

Since the "desired effect" is very much in the eye of the beholder (I mean, does LO really know that two things are actually overlapping each other and that it actually matters) this is practically speaking a WONTFIX.