Bug 142486 - FILEOPEN DOCX margin wrong in wrap 'Square' if shadow present
Summary: FILEOPEN DOCX margin wrong in wrap 'Square' if shadow present
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: OOXML-Shapes
  Show dependency treegraph
 
Reported: 2021-05-25 16:55 UTC by Regina Henschel
Modified: 2021-07-01 21:38 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Document with shadow in several distancies (31.28 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-05-25 16:55 UTC, Regina Henschel
Details
Compare LO and Word (131.10 KB, image/png)
2021-05-25 17:00 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2021-05-25 16:55:15 UTC
Created attachment 172335 [details]
Document with shadow in several distancies

Open attached document. It has shapes with wrap "Square" and there a left wrap distance to text of 36px. The shapes have shadow enabled which goes to the left (180° in UI of Word). The shadow distance varies, 0pt, 8pt, 21pt and 54pt.

The white part of the wrap area should be the same in all four examples, because they all have the same distance to text. But the white area increases with the shadow distance. It looks as if the shadow distance is applied twice.

From versions on my PC, I see the error first in Version: 5.1.0.1.0+
Build-ID: 928a7a3e92e085a880ecf0d3ad5e40d41b7779bf
CPU Threads: 8; OS Version: Windows 6.2; UI Render: default; 
TinderBox: Win-x86@62-merge-TDF, Branch:libreoffice-5-1, Time: 2016-01-13_00:08:26
Gebietsschema: de-DE (en_US)

The rendering is OK in Version: 4.4.7.2
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: en_US
Comment 1 Regina Henschel 2021-05-25 17:00:35 UTC
Created attachment 172336 [details]
Compare LO and Word
Comment 2 Xisco Faulí 2021-05-26 07:27:48 UTC
Reproduced in

Version: 7.2.0.0.alpha1+ / LibreOffice Community
Build ID: 42d2b2d55a27f11153ea1713737d93540a19211d
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 3 NISZ LibreOffice Team 2021-06-01 08:19:53 UTC
bibisected with bibisect-win32-5.0 to:

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


author	Miklos Vajna <vmiklos@collabora.co.uk>	2014-12-04 10:42:40 +0100
committer	Miklos Vajna <vmiklos@collabora.co.uk>	2014-12-04 11:25:38 +0100

DOCX filter: effect extent should be part of the margin

Adding CC to: Miklos Vajna
Comment 4 Regina Henschel 2021-06-01 08:31:02 UTC
My changes in https://gerrit.libreoffice.org/c/core/+/115668 would solve the problem. But the patch is not yet ready because export is still missing.
Comment 5 Miklos Vajna 2021-06-01 08:32:42 UTC
Thanks for mentioning that, knowing about that avoids double work. :-)
Comment 6 Regina Henschel 2021-07-01 21:38:33 UTC
This is fixed with https://git.libreoffice.org/core/commit/3262fc5ef3bde5b158909d11ccb008161ea95519