diff --git a/src/js/svgcanvas.js b/src/js/svgcanvas.js index 74ea936..a5b0e75 100644 --- a/src/js/svgcanvas.js +++ b/src/js/svgcanvas.js @@ -6008,6 +6008,8 @@ this.importSvgString = function(xmlString) { this.prepareSvg(newDoc); + newDoc = this.styleToAttr(newDoc); + // import new svg document into our document var svg = svgdoc.adoptNode(newDoc.documentElement);