Bug 68888 - FORMATTING: Text background color (e.g in table cells) becomes transparent with background image in the table/text
Summary: FORMATTING: Text background color (e.g in table cells) becomes transparent wi...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 62391 73319 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-03 14:01 UTC by Ivan Sorokin
Modified: 2017-05-22 13:47 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
sample image (screenshot) (218.86 KB, image/png)
2013-09-03 14:01 UTC, Ivan Sorokin
Details
sample document showing this behavour (try to move the image) (150.18 KB, application/vnd.oasis.opendocument.text)
2013-09-03 14:02 UTC, Ivan Sorokin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Sorokin 2013-09-03 14:01:47 UTC
Created attachment 85116 [details]
sample image (screenshot)

Steps to reproduce:

1. Create a new Writer document.
2. Insert a table into it (with default options: 2 rows, 2 columns).
3. Write some text in any cell.
4. Add background color to this text.
5. Paste some raster image into the document.
6. Edit the image's properties: set "Anchor" to "To page" and "Wrap" to "Through".
7. Move the image under the table.

You will see that text is shown higher than image (as it should be), but text's background color disappears.

Sample image demonstrating this bug is attached to the ticket.
Comment 1 Ivan Sorokin 2013-09-03 14:02:49 UTC
Created attachment 85117 [details]
sample document showing this behavour (try to move the image)
Comment 2 a79833 2013-09-03 20:35:30 UTC
I can confirm this under kubuntu LO 4.1.1.2.
Comment 3 tmacalp 2013-11-25 16:48:17 UTC
I can confirm this behavior under LO 4.1.3.2, so I'll mark it as New.  But it appears this bug is MUCH older and predates LibreOffice, since I can confirm the same broken behavior under OpenOffice 3.2.1.  I'll change the version back to the first version of LO affected, 3.3.0.

I believe step 6 should say to change the wrap to be "In Background" instead of "Through."  Your example document is set up that way too.

As far as I know, changing background color using the drop down is just changing the paragraph style.  There are probably more, but here are the following situations I could think of:

1. Paragraph style background style (same as "Background" drop-down)
  As mentioned in original report, this shows the reported error.

2. Table/cell background color
  (right click -> table -> background)
  This too will show the reported error.  The background image will override the table/cell's background color.

3. Character style (same as "Highlighting" drop-down)
  (Select text -> right click -> character -> background)
  This does NOT show the bug and the background color appears above the picture as you would expect.

Also, when you set a Paragraph style background color, the Character style will also show that the its background color is changed, even though it obviously isn't.  This is inconsistent and isn't the way other inherited styles work.  I'll report this as a separate bug, if it hasn't been reported already.
Comment 4 tmacalp 2013-11-25 17:38:37 UTC
Oh, I missed the most simple example.  You don't even need a table, since this behavior affects normal paragraph styles too.

Steps to reproduce:
1. Open writer, type some text
2. Change paragraph background color
3. Insert picture
4. Wrap picture "In Background"
5. Place picture over text

You'll note the same behavior as the original report.  The picture will block out the background color, but leave the text.  

You might even think this behavior could be intentional, but I'd argue that it's not ideal.  The image wrapping "In Background" should only override the background color of the page or a frame(if the image is anchored to it).  Paragraph/table background colors that are explicitly set should show over pictures wrapped in the background.
Comment 5 Cor Nouws 2014-04-01 09:21:03 UTC
*** Bug 62391 has been marked as a duplicate of this bug. ***
Comment 6 Cor Nouws 2014-04-01 09:22:02 UTC
*** Bug 73319 has been marked as a duplicate of this bug. ***
Comment 7 QA Administrators 2015-06-08 14:42:02 UTC Comment hidden (obsolete)
Comment 8 tmacalp 2015-06-08 21:42:05 UTC
I tested and can confirm that this bug still affects LibreOffice 4.4.3.2.
Comment 9 Christoforos 2016-03-20 21:01:05 UTC
The exists on 5.0.5.2
Comment 10 QA Administrators 2017-05-22 13:19:25 UTC Comment hidden (obsolete)
Comment 11 Dries Feys 2017-05-22 13:47:26 UTC
LO version :: 5.3.2.2 (x64)
Build ID: 6cd4f1ef626f15116896b1d8e1398b56da0d0ee1
CPU Threads: 8; OS Version: Windows 6.1; UI Render: default; Layout Engine: new; 
Locale: nl-BE (nl_BE); Calc: group