https://bugs.freedesktop.org/show_bug.cgi?id=69654

--- Comment #5 from Jacobo Aragunde PĂ©rez <jaragu...@igalia.com> ---
I could add more details now :)

The reason why the gradient changes is because we don't support gradients with
more than two colors in LibreOffice. You can check the API of the Gradient
structure at [1], there are only two colors in it. If you check the code at
[2], you will see how a gradient with >2 stops is transformed by the importer.

To sum up, a proper fix for this bug would imply the implementation of a new
feature: support of gradients with any number of color stops. Right now, the
code in master (4.3) is able to preserve the original gradient when exporting
back to .docx but it's yet unable to render the gradient correctly.

[1]
http://api.libreoffice.org/docs/idl/ref/structcom_1_1sun_1_1star_1_1awt_1_1Gradient.html

[2]
http://opengrok.libreoffice.org/xref/core/oox/source/drawingml/fillproperties.cxx#368

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to