Clone in a terminal:
Commit f0a7c68
Johan Mattsson - 2016-01-10T23:25:28+00:00
f0a7c685f61565a3331636f9c02687268de248cdjohan.mattsson.m@gmail.com

Stroke with for ellipse in SVG rendering

Changed files (2)

Diff

diff --git a/libsvgbird/Ellipse.vala b/libsvgbird/Ellipse.valaindex 49d8f2f..86e4be6 100644--- a/libsvgbird/Ellipse.vala+++ b/libsvgbird/Ellipse.vala@@ -43,6 +43,9 @@ public class Ellipse : Object { 		cr.translate (cx + rx, cy + ry); 		cr.scale (rx, ry); 		cr.arc (0, 0, 1, 0, 2 * Math.PI);+		cr.restore ();+		+		cr.save (); 		apply_transform (cr);		 		paint (cr); 		cr.restore ();diff --git a/libsvgbird/SvgStyle.vala b/libsvgbird/SvgStyle.valaindex a1a4ded..59890c5 100644--- a/libsvgbird/SvgStyle.vala+++ b/libsvgbird/SvgStyle.vala@@ -57,15 +57,11 @@ public class SvgStyle { 			s = style.get ("stroke") != "none"; 		} 				-		return get_stroke_width () > 0 && s;+		return stroke_width > 0 && s; 	} 		 	public double get_stroke_width () {-		if (!style.has_key ("stroke-width")) {-			return 0;-		}--		return double.parse (style.get ("stroke-width"));+		return stroke_width; 	} 	 	public static SvgStyle parse (Defs? d, SvgStyle inherited, Attributes attributes) {

Contact

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