Clone in a terminal:
Commit d19de39
Johan Mattsson - 2016-06-08T20:38:26+00:00
d19de3941396059c5601355b916507a2fdfc0a75johan.mattsson.m@gmail.com

Copy circles

Changed files (3)

Diff

diff --git a/libsvgbird/Circle.vala b/libsvgbird/Circle.valaindex eaad41b..b5e030b 100644--- a/libsvgbird/Circle.vala+++ b/libsvgbird/Circle.vala@@ -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; diff --git a/libsvgbird/Gradient.vala b/libsvgbird/Gradient.valaindex 50b2927..b6946a9 100644--- a/libsvgbird/Gradient.vala+++ b/libsvgbird/Gradient.vala@@ -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) {diff --git a/libsvgbird/SvgPath.vala b/libsvgbird/SvgPath.valaindex 1f985e2..831bd8b 100644--- a/libsvgbird/SvgPath.vala+++ b/libsvgbird/SvgPath.vala@@ -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) {

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112