https://bugs.documentfoundation.org/show_bug.cgi?id=94588
Bug ID: 94588
Summary: FILEOPEN: ODT - Missing gradients found in
<svg:linearGradient> <svg:radialGradient>
Product: LibreOffice
Version: 5.1.0.0.alpha0+ Master
Hardware: Other
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
Blocks: 94587
Created attachment 119105
--> https://bugs.documentfoundation.org/attachment.cgi?id=119105&action=edit
sample doc
Steps:
1) Open attached file
2) Notice that all shapes have a black to white linear gradient
3) Compare this with Calligra Words
Version: 5.1.0.0.alpha1+
Build ID: 18c196f0190d9920673cdd9a4dbc158f08959cfd
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time:
2015-09-26_00:38:50
Locale: en-US (en_US.UTF-8)
LibreOffice reads and writes gradients in the <draw:gradient> tag, but cant
import linear and radial gradients from <svg:linearGradient> and
<svg:radialGradient> tags found in styles.xml (
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1416462_253892949
).
Below are xml examples taken from the attached file.
<svg:linearGradient draw:name="gradient1" svg:spreadMethod="pad"
svg:x1="0.000000%" svg:x2="100.000000%" svg:y1="0.000000%"
svg:y2="100.000000%">
<svg:stop svg:offset="0" svg:stop-color="#ffffff"/><svg:stop svg:offset="1"
svg:stop-color="#00ff00"/>
</svg:linearGradient>
<svg:radialGradient draw:name="gradient5" svg:cx="50.000000%"
svg:cy="50.000000%" svg:fx="25.000000%" svg:fy="25.000000%" svg:r="50.000000%"
svg:spreadMethod="pad">
<svg:stop svg:offset="0" svg:stop-color="#ffffff"/><svg:stop svg:offset="1"
svg:stop-color="#00ff00"/>
</svg:radialGradient>
As <svg:linearGradient> and <svg:radialGradient> tags are capable of having
advanced gradients (gradients with more than 2 colors), only the first and last
<svg:stop> tags should be read, as LO doesnt have capabilities of handling
advanced gradients. LO does the same thing when importing advanced gradients
from ooxml files.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs