From d80dd06bad70b90432910db184c11654d1799283 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Mon, 5 Jul 2010 13:26:52 +0000 Subject: [PATCH] Fixed issue 591 and issue 592 git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1622 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 4 ---- editor/svgcanvas.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) 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":