Oops! I forgot to attach the patch.
On Fri, Jan 28, 2011 at 12:52 AM, KUROSAWA, Takeshi <taken.spc@gmail.com> wrote:
Hi,
SVG import filter doesn't support 'color' property yet.
This makes svg files produced by gnuplot invisible.
https://bugs.freedesktop.org/show_bug.cgi?id=33551
The attached patch makes the filter able to parse 'color' property and
store the value as currentColor.
Cheers,
--
KUROSAWA, Takeshi <taken.spc@gmail.com>
--
KUROSAWA, Takeshi <taken.spc@gmail.com>
From d8c3a0d4e4ded48d97d3c6c69944b774411bbf93 Mon Sep 17 00:00:00 2001
From: Takeshi Kurosawa <taken.spc@gmail.com>
Date: Thu, 27 Jan 2011 13:45:16 +0900
Subject: [PATCH] Parse 'color' property (fdo#33551)
Parse 'color' property and store the value as currentColor.
---
filter/source/svg/svgreader.cxx | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/filter/source/svg/svgreader.cxx b/filter/source/svg/svgreader.cxx
index 9c43698..9ec601e 100644
--- a/filter/source/svg/svgreader.cxx
+++ b/filter/source/svg/svgreader.cxx
@@ -990,6 +990,14 @@ struct AnnotatingVisitor
rParent.maStrokeGradient );
break;
}
+ case XML_COLOR:
+ {
+ if( aValueUtf8 == "inherit" )
+ maCurrState.maCurrentColor = maParentStates.back().maCurrentColor;
+ else
+ parseColor(aValueUtf8, maCurrState.maCurrentColor);
+ break;
+ }
case XML_TRANSFORM:
{
basegfx::B2DHomMatrix aTransform;
--
1.7.1
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.