diff --git a/editor/svg-editor.js b/editor/svg-editor.js index e5085a16..149927b3 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -170,10 +170,6 @@ urldata.extensions = urldata.extensions.split(','); } - if(urldata.bkgd_color) { - urldata.bkgd_color = '#' + urldata.bkgd_color; - } - if(urldata.bkgd_color) { urldata.bkgd_color = '#' + urldata.bkgd_color; } diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 7114e349..8d33ff19 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -8813,7 +8813,7 @@ this.setPaint = function(type, paint) { cur_properties[type + '_paint'] = p; switch ( p.type ) { case "solidColor": - this.setColor('stroke', p.solidColor != "none" ? "#"+p.solidColor : "none");; + this.setColor(type, p.solidColor != "none" ? "#"+p.solidColor : "none");; break; case "linearGradient": case "radialGradient":