Commit f0a7c68
Stroke with for ellipse in SVG rendering
Changed files (2)
Diff
@@ -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 ();@@ -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) {