From 56c90839abac00edd119623ad381be33ebede995 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Thu, 8 Nov 2012 18:02:38 +0100 Subject: [PATCH] SVG Importer: fillcolor of path items should default to black. --- src/svg/SvgImport.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/svg/SvgImport.js b/src/svg/SvgImport.js index 20d2f745..544e74fa 100644 --- a/src/svg/SvgImport.js +++ b/src/svg/SvgImport.js @@ -350,6 +350,9 @@ new function() { var name = svg.style[i]; item = applyAttribute(item, svg, name, svg.style[Base.camelize(name)]); } + // Path items receive a black fill color by default: + if (item instanceof Path && !item.getFillColor()) + item.setFillColor(new GrayColor(1)); for (var i = 0, l = svg.attributes.length; i < l; i++) { var attr = svg.attributes[i]; item = applyAttribute(item, svg, attr.name, attr.value);