From fbed0d8a51d351612e13d009dd983f2960705deb Mon Sep 17 00:00:00 2001 From: Mark MacKay Date: Wed, 16 Jun 2021 15:16:08 -0500 Subject: [PATCH] correct importation with gradients --- src/js/svgcanvas.js | 2 ++ 1 file changed, 2 insertions(+) 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);