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);