Commit d19de39
Copy circles
Changed files (3)
Diff
@@ -54,7 +54,7 @@ public class Circle : Object { Object.copy_attributes (this, c); c.cx = cx;- c.cx = cy;+ c.cy = cy; c.r = r; return c; @@ -48,6 +48,12 @@ public class Gradient : GLib.Object { foreach (Stop s in stops) { g.stops.add (s.copy ()); }+ + g.id = id;+ g.href = href; + transforms = transforms.copy ();+ + print (@"$(this)\n"); return g; }@@ -60,7 +66,7 @@ public class Gradient : GLib.Object { public string to_string () { StringBuilder description = new StringBuilder ();- description.append ("Gradient: ");+ description.append (@"Gradient $(id): "); description.append (@"x1=$x1, y1=$y1, x2=$x2, y2=$y2"); foreach (Stop stop in stops) {@@ -49,6 +49,7 @@ public class SvgPath : Object { PointValue* points = path.point_data.data; int size = path.point_data.size; + // points are padded up to 8 units return_if_fail (size % 8 == 0); for (int i = 0; i < size; i += 8) {