Bug 134783 - EDITING Shape position should not apply paragraph spacing
Summary: EDITING Shape position should not apply paragraph spacing
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: medium normal
Assignee: Balázs Regényi
URL:
Whiteboard: target:7.1.0
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-13 12:51 UTC by NISZ LibreOffice Team
Modified: 2021-03-17 23:47 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Writer (8.75 KB, application/vnd.oasis.opendocument.text)
2020-07-13 12:51 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document in Writer (118.98 KB, image/png)
2020-07-13 12:52 UTC, NISZ LibreOffice Team
Details
Similarly formatted example from Word (14.64 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-07-13 13:45 UTC, NISZ LibreOffice Team
Details
Screenshot of the similarly formatted document in Word and Writer (105.16 KB, image/png)
2020-07-13 13:51 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2020-07-13 12:51:36 UTC
Created attachment 162970 [details]
Example file from Writer

Attached test file has 5 cm spacing after the A2 paragraph set, and a line shape anchored to it. Also the “No space between paragraphs of the same style” property is turned on.
This makes the shape appear 5 cm below the A2 paragraph.
Turning off the “No space between paragraphs of the same style” off the similar A3 paragraph makes the line shape appear with the same amount of spacing, but is laid out below A3.

We think this behavior is wrong for interoperability reasons (not sure what ODF says though), since Word does this differently:
- If “No space between paragraphs of the same style” is turned on, the shape has no spacing applied
- If it’s turned off, the spacing of the paragraph is applied

Opening a Word-made DOCX with these settings makes the shape appear halfway between A1 and A2 paragraphs with spacing applied – this would be an upcoming bugs topic. But the paragraph with “No space between paragraphs of the same style” off is imported correctly.

Version: 7.0.0.1 (x64)
Build ID: 04ba7e3f1e51af6c5d653e543a620e36719083fd
CPU szálak: 4; OS: Windows 6.3 Build 9600; Felületmegjelenítés: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: CL

Also happens in:
Verzió: 6.0.0.3
Build az.: 64a0f66915f38c6217de274f0aa8e15618924765
CPU szálak: 4; OS: Windows 6.3; Felületmegjelenítés: alapértelmezett; 
Területi beállítások: hu-HU (hu_HU); Calc: CL

Version: 5.0.0.5
Build ID: 1b1a90865e348b492231e1c451437d7a15bb262b
Locale: hu-HU (hu_HU)

Verzió: 4.0.0.3 (Build az.: 7545bee9c2a0782548772a21bc84a9dcc583b89)
Comment 1 NISZ LibreOffice Team 2020-07-13 12:52:22 UTC
Created attachment 162971 [details]
Screenshot of the original document in Writer
Comment 2 NISZ LibreOffice Team 2020-07-13 13:45:24 UTC
Created attachment 162975 [details]
Similarly formatted example from Word
Comment 3 NISZ LibreOffice Team 2020-07-13 13:51:40 UTC
Created attachment 162977 [details]
Screenshot of the similarly formatted document in Word and Writer

This is in Word 2013 and LO 7.0RC1
Comment 4 Commit Notification 2020-07-17 14:39:35 UTC
Regényi Balázs committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/713c6b1880ee06f8ff0aa869906058f247db6e3a

tdf#134783 sw: fix contextual spacing position of shape

It will be available in 7.1.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 5 BogdanB 2020-07-20 19:13:19 UTC
Verified. It's ok now.
Version: 7.1.0.0.alpha0+
Build ID: abea0d6647c7f1f7e76c73c26cb80e6a67dc5111
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded