Bug 95168 - Background Color Removed from OOXML shapes with hatching
Summary: Background Color Removed from OOXML shapes with hatching
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
5.1.0.0.alpha0+ Master
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:ooxml
Depends on:
Blocks: OOXML-Shapes
  Show dependency treegraph
 
Reported: 2015-10-19 02:50 UTC by Luke
Modified: 2018-10-31 13:40 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Shape with Green Checkerboard fill (14.15 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2015-10-19 02:50 UTC, Luke
Details
The example file in LO 6.1 and Word 2013 side by side (164.61 KB, image/png)
2018-10-31 13:31 UTC, Gabor Kelemen (allotropia)
Details
The example file saved by Writer 6.1 (9.38 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-10-31 13:39 UTC, Gabor Kelemen (allotropia)
Details
Roundtripped file in Word and Writer (101.70 KB, image/png)
2018-10-31 13:40 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke 2015-10-19 02:50:32 UTC
Created attachment 119737 [details]
Shape with Green Checkerboard fill

The OOXML importer ignores the background (secondary fill color) with hatching. We support background fill colors.
Area -> Color -> Background Color
So ideally when <v:fill> has a color2 attribute, we should use it. If that's not possible, we should at least save it during round trip, instead of stripping it out like we do now.
Comment 1 Buovjaga 2015-10-20 17:20:39 UTC
Confirmed.

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+
Build ID: 186f32f63434e16ff5776251657f902d5808ed3d
TinderBox: Win-x86@39, Branch:master, Time: 2015-10-16_09:42:47
Locale: en-US (fi_FI)
Comment 2 QA Administrators 2018-06-25 02:40:45 UTC Comment hidden (obsolete)
Comment 3 Gabor Kelemen (allotropia) 2018-10-31 13:31:17 UTC
Created attachment 146198 [details]
The example file in LO 6.1 and Word 2013 side by side

This seems to work now in 6.1 at least.
Comment 4 Buovjaga 2018-10-31 13:35:46 UTC
Thanks, let's close.
Comment 5 Gabor Kelemen (allotropia) 2018-10-31 13:39:37 UTC
Created attachment 146199 [details]
The example file saved by Writer 6.1
Comment 6 Gabor Kelemen (allotropia) 2018-10-31 13:40:30 UTC
Created attachment 146200 [details]
Roundtripped file in Word and Writer

Works even after RT :)