Download it now!
Bug 98595 - FILEOPEN: OOXML - Rectangular fill not imported correctly
Summary: FILEOPEN: OOXML - Rectangular fill not imported correctly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:ooxml
Depends on:
Blocks: OOXML-Object-Fill 128795
  Show dependency treegraph
 
Reported: 2016-03-11 03:37 UTC by Luke
Modified: 2019-11-19 13:17 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Simple DOCX example (16.97 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-03-11 03:37 UTC, Luke
Details
Comparision Word vs Writer (51.84 KB, image/png)
2016-03-11 03:42 UTC, Luke
Details
Pros/Cons of Mapping Rect vs Square (157.67 KB, image/png)
2019-02-01 23:39 UTC, Luke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke 2016-03-11 03:37:56 UTC
Created attachment 123484 [details]
Simple DOCX example

A slideshow I opened was missing a "spotlight" like effect created with the radial fill. I found that we're incorrectly mapping fill gradients in both shapes and backgrounds. The correct mapping should be:

Radial -> Radial
Rectangular -> Quadratic 
Path -> Quadratic (centered)
Comment 1 Luke 2016-03-11 03:42:41 UTC
Created attachment 123485 [details]
Comparision Word vs Writer
Comment 2 Robinson Tryon (qubit) 2016-03-11 10:18:07 UTC
TESTING with Ubuntu 14.04 +
LO 5.2.0.0.alpha0+ (2016-02-24_23:58:47)

(In reply to Luke from comment #0)
> A slideshow I opened was missing a "spotlight" like effect created with the
> radial fill. I found that we're incorrectly mapping fill gradients in both
> shapes and backgrounds.

CONFIRMED -- LibreOffice does not match the document rendering in MS-Office.

Status -> NEW
Comment 3 QA Administrators 2017-05-22 13:20:25 UTC Comment hidden (obsolete)
Comment 4 eisa01 2018-03-18 09:50:27 UTC
Still present

Version: 6.1.0.0.alpha0+
Build ID: 8e8dd8f320a3ff59ff8a16c1a7a867888ce80700
CPU threads: 2; OS: Mac OS X 10.12.6; UI render: default; 
TinderBox: MacOSX-x86_64@49-TDF, Branch:master, Time: 2018-03-13_23:59:29
Locale: en-US (en_US.UTF-8); Calc: group
Comment 5 Luke 2019-02-01 23:39:24 UTC
Created attachment 148853 [details]
Pros/Cons of Mapping Rect vs Square

Miklos fixed the MSO Radial to LO Radial mapping in Bug 94238. 

The MSO Rectangular to LO’s square / quad  is not so cut and dry

If you map it to LO’s rect
1)	No "X" shape / incorrectly fades to a center line 
2)	The Corners of the X are correct
3)	MSO’s first gradient stop can be emulated with LO’s border

If you map it to LO’s square:
4)	"X" shape / correct fade to a center point 
5)	The corner of the X’s are off center 
6)	MSO’s first gradient stop cannot be emulated with LO’s border (note missing top/bottom border)

If we decide square is preferable, i have a patch at

https://gerrit.libreoffice.org/#/c/67254/