summaryrefslogtreecommitdiffstats
path: root/graphics/librsvg2/files/patch-rsvg-shapes.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/librsvg2/files/patch-rsvg-shapes.c')
-rw-r--r--graphics/librsvg2/files/patch-rsvg-shapes.c29
1 files changed, 16 insertions, 13 deletions
diff --git a/graphics/librsvg2/files/patch-rsvg-shapes.c b/graphics/librsvg2/files/patch-rsvg-shapes.c
index 2642a2539..d91bf5083 100644
--- a/graphics/librsvg2/files/patch-rsvg-shapes.c
+++ b/graphics/librsvg2/files/patch-rsvg-shapes.c
@@ -1,14 +1,17 @@
---- rsvg-shapes.c.orig Tue Jan 25 23:43:50 2005
-+++ rsvg-shapes.c Tue Jan 25 23:44:01 2005
-@@ -2579,10 +2579,10 @@
- const char * id, *value;
- double vbox_x = 0, vbox_y = 0, vbox_w = 0, vbox_h = 0;
- gboolean has_vbox = FALSE, overflow = 0;
-- id = NULL;
- RsvgDefsDrawableSvg * svg;
- RsvgDefsDrawableGroup * group;
- RsvgState state;
-+ id = NULL;
- rsvg_state_init(&state);
+--- rsvg-shapes.c.orig Thu Aug 25 22:32:03 2005
++++ rsvg-shapes.c Thu Aug 25 22:32:13 2005
+@@ -145,12 +145,12 @@ _rsvg_node_poly_draw(RsvgNode * self, Rs
+ int dominate)
+ {
+ RsvgNodePoly * poly = (RsvgNodePoly *)self;
++ gsize i;
++ GString * d = g_string_new ("");
+ /* represent as a "moveto, lineto*, close" path */
+ if (poly->pointlist_len < 2)
+ return;
- if (rsvg_property_bag_size (atts))
+- gsize i;
+- GString * d = g_string_new ("");
+ g_string_append_printf (d, "M %f %f ", poly->pointlist[0], poly->pointlist[1] );
+
+ for (i = 2; i < poly->pointlist_len; i += 2)