Issue 120542 - start and end color exchanged in gradient in comparison to ODF 1.2
Summary: start and end color exchanged in gradient in comparison to ODF 1.2
Status: UNCONFIRMED
Alias: None
Product: Draw
Classification: Application
Component: code (show other issues)
Version: 4.0.0-dev
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-11 16:31 UTC by Regina Henschel
Modified: 2012-08-13 15:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Regina Henschel 2012-08-11 16:31:56 UTC
Draw a square and set filling to Gradient.
Chose gradient type "radial" and set center to 0% for x and for y.
Set border to 0%.
Set "From" to "light blue"
Set "To" to "yellow".
Save.

When you unpack the file, you can see, that "From" is correctly mapped to start-color and "To" is correctly mapped to "End" color.

ODF 1.2 specifies in section "19.218.2 <draw:gradient>":
"radial: defines a gradient where the colors are blend along the radius from the center of a circle as defined with the draw:cx and draw:cy attributes. The outside of the circle is filled with the end color."

So the gradient should start in the center of the circle with blue and blend to yellow. The parts outside the circle should be yellow. But AOO has a yellow center and blue outside of the circle.
Comment 1 Armin Le Grand 2012-08-13 15:27:04 UTC
ALG: The gradients were first (before ODF), thus the description in ODF should be adapted. BTW: The start/end colors are used in a wild mix in the gradient types, was hard to take this into account with primitives.