Bug 120551 - DOCX: Wrong position of grouped drawing objects (see comment 7)
Summary: DOCX: Wrong position of grouped drawing objects (see comment 7)
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.0.0.alpha1+
Hardware: All All
: medium normal
Assignee: Miklos Vajna
URL:
Whiteboard: target:6.3.0 target:6.2.0.1 target:6.1.4
Keywords: bibisected, bisected, regression
Depends on:
Blocks: DOCX-Objects
  Show dependency treegraph
 
Reported: 2018-10-12 12:33 UTC by Daniel
Modified: 2018-11-28 15:50 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example Comparison (787.15 KB, image/png)
2018-10-12 12:34 UTC, Daniel
Details
Another Comparison (359.00 KB, image/png)
2018-10-12 12:35 UTC, Daniel
Details
Example Brochure (4.65 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-10-12 12:37 UTC, Daniel
Details
Another Brochure (2.18 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-10-12 12:39 UTC, Daniel
Details
minimized document (4.96 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-11-08 12:46 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2018-10-12 12:33:27 UTC
Description:
They're just terrible mess brochure that I pick-up some template from Word 2019 app and save it and after open in Writer.

Actual Results:
It should be followed structure like Word 2019

Expected Results:
But not in Writer, they're just horrible mess


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Daniel 2018-10-12 12:34:23 UTC
Created attachment 145648 [details]
Example Comparison
Comment 2 Daniel 2018-10-12 12:35:11 UTC
Created attachment 145649 [details]
Another Comparison
Comment 3 Daniel 2018-10-12 12:37:09 UTC
Created attachment 145651 [details]
Example Brochure
Comment 4 Daniel 2018-10-12 12:39:46 UTC
Created attachment 145652 [details]
Another Brochure
Comment 5 Dieter 2018-10-30 13:37:53 UTC
Daniel, I think it is obviously, that the odt-file is not correct. But I think there are different bugs. And for every diferent bug a different bug report is needed. Have you checked, if your problem already has been reported. For example look at meta bug 104449, meta bug 104468. I think you should narrow down the problem.
Comment 6 Daniel 2018-10-31 11:14:54 UTC
Updated attachment
Comment 7 Dieter 2018-11-04 10:39:38 UTC
I tried to narrow down to one problem: I opened the brochure and deleted everything except group drawing "group 51" (blue rectangle and blue dots in page one). Position is 0,00 cm from left to entire page. If you change it  to 0,00 cm from right to entire page, you get the same result as in Word.

So Daniel, I confirm this bug and change bug to NEW. But I think you have to open a separate bug for each problem.
Comment 8 Dieter 2018-11-04 10:42:13 UTC
I used

Version: 6.2.0.0.alpha1+ (x64)
Build ID: 8274c4c62df5b937b3f0bec9e1eeca85f3b219d4
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-10-22_01:47:50
Locale: en-US (de_DE); Calc: CL
Comment 9 Xisco Faulí 2018-11-08 12:46:44 UTC
Created attachment 146434 [details]
minimized document
Comment 10 Xisco Faulí 2018-11-08 12:59:50 UTC
Using the minimized document, the image changed from being displayed at 0 on the X axis to being displayed at a negative value after this commit:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=af313fc149f80adb0f1680ca20e19745ccb7fede

author	Miklos Vajna <vmiklos@collabora.co.uk>	2017-01-06 13:49:06 +0100
committer	Jan Holesovsky <kendy@collabora.com>	2017-01-06 15:14:50 +0000
commit af313fc149f80adb0f1680ca20e19745ccb7fede (patch)
tree 41473579cea4f6b39310bf8747249b68e4fa52af
parent 600f22fa3e718c36f3d8f47710df1dbbe0d0c4c2 (diff)
tdf#105143 DOCX import: enable DoNotCaptureDrawObjsOnPage layout compat option

Bisected with: bibisect-linux-64-5.4

Adding Cc: to Miklos Vajna
Comment 11 Commit Notification 2018-11-20 08:08:12 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/+/d220e476df38e86e094066a690985c624316d37f%5E%21

tdf#120551 DOCX import: fix position of group shape with absolute position

It will be available in 6.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 12 Commit Notification 2018-11-20 09:41:57 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "libreoffice-6-2":

https://git.libreoffice.org/core/+/dc38fc68dc130a8b35c1791ee7af4e44142e0698%5E%21

tdf#120551 DOCX import: fix position of group shape with absolute position

It will be available in 6.2.0.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 13 Xisco Faulí 2018-11-21 11:55:08 UTC
Verified in

Version: 6.2.0.0.beta1+
Build ID: d6ba6e4d31b872a175146f20cfb625cd520d7dc0
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

@Miklos, thanks for fixing this!!
Comment 14 Xisco Faulí 2018-11-21 11:57:26 UTC
Cherry-picked to 6-1: https://gerrit.libreoffice.org/#/c/63710/
Comment 15 Commit Notification 2018-11-28 15:50:13 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "libreoffice-6-1":

https://git.libreoffice.org/core/+/ef5875be7d0aefcb95f878fee49d79a65cd063ea%5E%21

tdf#120551 DOCX import: fix position of group shape with absolute position

It will be available in 6.1.4.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.