Commit 61816067 authored by Simon Budig's avatar Simon Budig Committed by Simon Budig

fix the handling of the stroke-dashoffset property.

2008-08-04  Simon Budig  <simon@gimp.org>

	* rsvg-styles.[ch]: fix the handling of the stroke-dashoffset
	property.


svn path=/trunk/; revision=1166
parent 2e135f73
2008-08-04 Simon Budig <simon@gimp.org>
* rsvg-styles.[ch]: fix the handling of the stroke-dashoffset
property.
2008-05-23 Tor Lillqvist <tml@novell.com>
* tests/samples/artwork.svg: Use "sans-serif" instead of
......
......@@ -106,6 +106,7 @@ rsvg_state_init (RsvgState * state)
state->has_cap = FALSE;
state->has_join = FALSE;
state->has_dash = FALSE;
state->has_dashoffset = FALSE;
state->has_visible = FALSE;
state->has_cond = FALSE;
state->has_stop_color = FALSE;
......@@ -268,6 +269,10 @@ rsvg_state_inherit_run (RsvgState * dst, const RsvgState * src,
dst->dash.dash[i] = src->dash.dash[i];
}
if (function (dst->has_dashoffset, src->has_dashoffset)) {
dst->dash.offset = src->dash.offset;
}
if (inherituninheritables) {
dst->clip_path_ref = src->clip_path_ref;
dst->mask = src->mask;
......@@ -664,7 +669,7 @@ rsvg_parse_style_arg (RsvgHandle * ctx, RsvgState * state, const char *str)
state->has_miter_limit = TRUE;
state->miter_limit = g_ascii_strtod (str + arg_off, NULL);
} else if (rsvg_css_param_match (str, "stroke-dashoffset")) {
state->has_dash = TRUE;
state->has_dashoffset = TRUE;
state->dash.offset = _rsvg_css_parse_length (str + arg_off);
if (state->dash.offset.length < 0.)
state->dash.offset.length = 0.;
......
......@@ -209,6 +209,7 @@ struct _RsvgState {
RsvgVpathDash dash;
gboolean has_dash;
gboolean has_dashoffset;
guint32 current_color;
gboolean has_current_color;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment