Commit ebf7b42c authored by Dom Lachowicz's avatar Dom Lachowicz

Fix segv when encountering feMergeNode (bug 330928)

parent 1dfcc29c
2006-02-16 Dom Lachowicz <cinamod@hotmail.com>
* rsvg-filter.c: Fix segv when encountering feMergeNode (bug 330928)
2006-02-15 Rob Staudinger <robert.staudinger@gmail.com>
* rsvg-text.c: revert fix #168223, it causes side-effects.
......
......@@ -769,7 +769,7 @@ rsvg_new_filter (void)
filter->height = _rsvg_css_parse_length("120%");
filter->super.children = g_ptr_array_new ();
filter->super.set_atts = rsvg_filter_set_args;
return &filter->super;
return (RsvgNode *)filter;
}
/*************************************************************/
......@@ -1853,6 +1853,13 @@ rsvg_filter_primitive_merge_node_free (RsvgNode * self)
_rsvg_node_free(self);
}
static void
rsvg_filter_primitive_merge_node_render (RsvgFilterPrimitive * self,
RsvgFilterContext * ctx)
{
/* todo */
}
RsvgNode *
rsvg_new_filter_primitive_merge_node (void)
{
......@@ -1861,8 +1868,9 @@ rsvg_new_filter_primitive_merge_node (void)
_rsvg_node_init(&filter->super);
filter->in = g_string_new ("none");
filter->super.free = rsvg_filter_primitive_merge_node_free;
filter->render = &rsvg_filter_primitive_merge_node_render;
filter->super.set_atts = rsvg_filter_primitive_merge_node_set_atts;
return &filter->super;
return (RsvgNode *)filter;
}
/*************************************************************/
......
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