Bug 91500 - Changing heading spacing above paragraph does not work with previous image with caption
Summary: Changing heading spacing above paragraph does not work with previous image wi...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.0.0.beta1
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Styles-Paragraph
  Show dependency treegraph
 
Reported: 2015-05-22 20:45 UTC by Edmund Laugasson
Modified: 2023-05-17 15:41 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
backtrace log in Linux (5.25 KB, text/x-log)
2015-05-23 10:08 UTC, Edmund Laugasson
Details
document created during backtrace as root (47.11 KB, application/vnd.oasis.opendocument.text)
2015-05-23 10:09 UTC, Edmund Laugasson
Details
strace log in Linux (54.35 KB, text/plain)
2015-05-23 10:10 UTC, Edmund Laugasson
Details
document created during strace as regular user (360.53 KB, application/vnd.oasis.opendocument.text)
2015-05-23 10:11 UTC, Edmund Laugasson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Edmund Laugasson 2015-05-22 20:45:42 UTC
Using 64-bit Linux Mint Cinnamon 17.1 with 4.0.4-040004-generic kernel
LibreOffice version: 5.0.0.0.beta1
Build ID: 0a16c3dda4150008d9be6f24cbd15ac198d116d3
Locale: et-EE (et_EE.UTF-8)

steps to reproduce:
* insert image and caption to it - this will add panel (frame) around the picture
* start new title with some heading style
* by default Heading 2 is too close to image frame
* changing paragraph style: spacing above the paragraph from properties panel at right side
* the spacing does not work when the previous object is not text but image with or without caption

Expected result: changing paragraph style and paragraph spacing - it should work not only with text in previous paragraph buth also with graphical objects like images, panels, tables etc.
Comment 1 Edmund Laugasson 2015-05-23 10:08:00 UTC
Created attachment 115873 [details]
backtrace log in Linux

Using 64-bit Linux Mint Cinnamon 17.1 with 4.0.4-040004-generic kernel
LibreOffice version: 5.0.0.0.beta1
Build ID: 0a16c3dda4150008d9be6f24cbd15ac198d116d3
Locale: et-EE (et_EE.UTF-8)
Comment 2 Edmund Laugasson 2015-05-23 10:09:24 UTC
Created attachment 115875 [details]
document created during backtrace as root

Using 64-bit Linux Mint Cinnamon 17.1 with 4.0.4-040004-generic kernel
LibreOffice version: 5.0.0.0.beta1
Build ID: 0a16c3dda4150008d9be6f24cbd15ac198d116d3
Locale: et-EE (et_EE.UTF-8)
Comment 3 Edmund Laugasson 2015-05-23 10:10:16 UTC
Created attachment 115877 [details]
strace log in Linux

Using 64-bit Linux Mint Cinnamon 17.1 with 4.0.4-040004-generic kernel
LibreOffice version: 5.0.0.0.beta1
Build ID: 0a16c3dda4150008d9be6f24cbd15ac198d116d3
Locale: et-EE (et_EE.UTF-8)
Comment 4 Edmund Laugasson 2015-05-23 10:11:12 UTC
Created attachment 115878 [details]
document created during strace as regular user

Using 64-bit Linux Mint Cinnamon 17.1 with 4.0.4-040004-generic kernel
LibreOffice version: 5.0.0.0.beta1
Build ID: 0a16c3dda4150008d9be6f24cbd15ac198d116d3
Locale: et-EE (et_EE.UTF-8)
Comment 5 Gordo 2015-05-30 13:27:00 UTC
I opened document and turned on Non-printing Characters.  The frame is part of the paragraph with the text "Title".  If you place the cursor before "Title" and Enter then the frame will be in a separate paragraph and the spacing above will work.

Undoing the previous entering of a paragraph, if the frame is anchored as a character then it appears before "Title".  If you place the cursor before "Title" and Enter then the frame will be in a separate paragraph and the spacing above will work.  Notice how that paragraph has the heading style and it has spacing above.

Depending on how big the frame or image is, if it is not set to no wrap then the next paragraph (and the next) will appear directly below the previous paragraph and the image will be to the right.

Windows Vista 64
Version: 4.4.3.2
Build ID: 88805f81e9fe61362df02b9941de8e38a9b5fd16

Changed to RESOLVED NOTABUG.
Comment 6 Edmund Laugasson 2015-05-31 21:51:42 UTC
(In reply to Gordo from comment #5)
> I opened document and turned on Non-printing Characters.  The frame is part
> of the paragraph with the text "Title".  If you place the cursor before
> "Title" and Enter then the frame will be in a separate paragraph and the
> spacing above will work.
> 
> Undoing the previous entering of a paragraph, if the frame is anchored as a
> character then it appears before "Title".  If you place the cursor before
> "Title" and Enter then the frame will be in a separate paragraph and the
> spacing above will work.  Notice how that paragraph has the heading style
> and it has spacing above.
> 
> Depending on how big the frame or image is, if it is not set to no wrap then
> the next paragraph (and the next) will appear directly below the previous
> paragraph and the image will be to the right.
> 
> Windows Vista 64
> Version: 4.4.3.2
> Build ID: 88805f81e9fe61362df02b9941de8e38a9b5fd16
> 
> Changed to RESOLVED NOTABUG.

I would say that this is workaround but not the solution. Adding empty rows would be too time consuming when there is a lot of text and pictures. Program purpose should be reduce working time and effort, not require it more. Such hand-made additional work should be reduced.

Playing with empty rows gives the result but it quite uncomfortable way to establish expected result. Even changing the frame wrap spacing gives the expected space - I would expect that paragraph style spacing should work in the same way as frame wrap spacing. This could be also configurable if to be more flexible. But this would be bad idea to enter additional empty rows, especially in long documents.

Changed to REOPENED.
Comment 7 Gordo 2015-05-31 23:08:54 UTC
I was not demonstrating a workaround but how anchors work.  If you want there to be paragraph spacing then put the object in its own paragraph.  You should not look at it as an empty paragraph but as a paragraph with an object.

When an object is anchored to a paragraph, or as a character, it is part of the paragraph.  You cannot have paragraph spacing between an object and text in the same paragraph.  You can have spacing to contents between the object and the text.

There is no bug and no need of an enhancement.  The user has to plan what the finished result is going to be and determine the actions most suitable to achieving that result.

REOPENED has a specific meaning and should not be used in this scenario.  I will leave it as UNCONFIRMED so that someone else can look at it.
Comment 8 geraldg 2015-06-20 14:09:00 UTC
It's the same behavior as in 4.4.2.

I think it is not a bug.
Can anyone have a look for it
Comment 9 QA Administrators 2016-09-20 10:09:50 UTC Comment hidden (obsolete)
Comment 10 Edmund Laugasson 2016-09-20 10:56:53 UTC
Tested with LibreOffice 5.2.1, 64-bit on Linux Mint 18 (kernel 4.7.4).
Changing picture frame spacing - it works but does not help much as the frame around the picture is not a style.
But initially Heading 2 style was reported and still changing its spacing e.g. before the title does not work - there will be no bigger space between title and picture.
Comment 11 Xisco Faulí 2017-09-29 08:50:58 UTC Comment hidden (obsolete)
Comment 12 QA Administrators 2019-12-03 14:38:51 UTC Comment hidden (obsolete)
Comment 13 QA Administrators 2021-12-03 04:37:45 UTC Comment hidden (obsolete)
Comment 14 Edmund Laugasson 2021-12-03 05:14:30 UTC
Version: 7.2.3.2 / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: et-EE (et_EE.UTF-8); UI: et-EE
7.2.3-1
Calc: threaded

Image with caption:
Currently Heading 2 was in proper distance.

Image without caption (just plain image) still distance is too small with Heading 2 and changing its indentation above paragraph does not change it actually in text.