Bug 37653

Summary: Color fill merging for different header styles (only with the same colors).
Product: LibreOffice Reporter: Zuzukrukov <zu_zu_krukov>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: bugs, opensource
Version: 3.3.2 release   
Hardware: x86-64 (AMD64)   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Example of the bug. There is 4 header styles and 5 headers using this styles. First two lines - is a bug, another one - ok.

Description Zuzukrukov 2011-05-26 23:10:00 UTC
Created attachment 47208 [details]
Example of the bug. There is 4 header styles and 5 headers using this styles. First two lines - is a bug, another one - ok.

When you create color fill in style "header_1" and "header_2" (for example) with identical color fill, and add some vertical margins for one or both styles - the margins will fill the color too, but they shouldn't. If the color are different - there is no problem.
Comment 1 Björn Michaelsen 2011-12-23 12:06:49 UTC
[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1

more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
Comment 2 Roman Eisele 2012-05-02 08:13:01 UTC
[REPRODUCIBLE] with LibreOffice 3.5.3.2 (Build-ID: 235ab8a-3802056-4a8fed3-2d66ea8-e241b80), German UI, on MacOS X 10.6.8.

Just to avoid misunderstandings: this bug report is talking about styles for headlines, not about page headers/footers (see attached sample file).

To explain the issue a bit lengthy (I did not understand the original description at the first glance):

There is a general behaviour in LibreOffice Writer that two paragraphs immediately following each other and having the same background color will get displayed like 'merged' to one rectangle with the same background color, even if there is some (vertical) spacing after the 1st and/or before the 2nd paragraph. For example, if you have two paragraphs with DIFFERENT backgrond color and some (vertical) spacing after the 1st and/or before the 2nd paragraph, they look like this:

+--------------------------------------------+
| First paragraph                            |
+--------------------------------------------+


+--------------------------------------------+
| Second paragraph                           |
+--------------------------------------------+

But the background color of both paragraphs is the same, they look like this, showing one single rectangle of background color:

+--------------------------------------------+
| First paragraph                            |
|                                            |
|                                            |
|                                            |
| Second paragraph                           |
+--------------------------------------------+

Whether this behaviour is right or wrong for ordinary paragraphs of ordinary text, might be disputed (this may be a feature or a bug).

But Zuzukrukov's report specifically talks about two headlines following each other, and here the current behaviour is really disturbing. The background color is handled like in ordinary paragraphs, i.e., when two headlines with the same background colors follow each other immediately, they get a single background color rectangle:

+--------------------------------------------+
| 1. Main headline                           |
|                                            |
|                                            |
|                                            |
| 1.1 Subhead                                |
+--------------------------------------------+

The same is shown by Zuzukrukov's sample file.

IMHO the current behaviour is irritating, especially for headlines; in my example, the user will probably not want to have the main headline (1.) and the subhead line (1.1.) to look similar to a single headline because of the common background rectangle.
Comment 3 Chris Tapp 2013-01-11 13:55:02 UTC
Is this issue being worked on at the moment?

It is currently affecting a project I am working on and I can't find a work round as I'm hoping to create a print-ready pdf which uses a single spot color.
Comment 4 Chris Tapp 2013-01-11 14:28:52 UTC
It may be work noting that I tried to use a single-pixel graphic image to solve the problem.

When set to 'Tile' I got the same behavior (i.e. color in the 'space before' region).

However, using the 'Area' option gives the desired behavior (i.e no color in the space). Stranger still, setting either of the heading graphics to 'Area' makes it work.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.