From ee2e10565d9eb54870f780bd7ff7b50ec50396c6 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Mon, 31 Aug 2009 15:59:42 +0000 Subject: [PATCH] Fixed more bugs related to r505 git-svn-id: http://svg-edit.googlecode.com/svn/trunk@506 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index ac96b188..c1f5ff26 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -564,9 +564,9 @@ function SvgCanvas(c) font_family: 'serif' }); - var cur_properties = null; var cur_shape = all_properties.shape; var cur_text = all_properties.text; + var cur_properties = cur_shape; var freehand_min_x = null; var freehand_max_x = null; @@ -2338,6 +2338,7 @@ function SvgCanvas(c) this.setStrokeColor = function(val) { cur_shape.stroke = val; + cur_properties.stroke_paint = {type:"solidColor"}; this.changeSelectedAttribute("stroke", val); }; @@ -2347,7 +2348,7 @@ function SvgCanvas(c) this.setFillColor = function(val) { cur_properties.fill = val; - + cur_properties.fill_paint = {type:"solidColor"}; // take out any path/line elements when setting fill var elems = []; var i = selectedElements.length;