Fix Issue 91: set paint to 'none' if not set during update of toolbar

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@372 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-08-13 15:51:30 +00:00
parent 83275046b4
commit d653745a70
1 changed files with 2 additions and 2 deletions

View File

@ -83,12 +83,12 @@ function svg_edit_setup() {
}
// update fill color and opacity
var fillColor = selectedElement.getAttribute("fill");
var fillColor = selectedElement.getAttribute("fill")||"none";
svgCanvas.setFillColor(fillColor);
svgCanvas.setFillOpacity(fillOpacity);
// update stroke color and opacity
var strokeColor = selectedElement.getAttribute("stroke");
var strokeColor = selectedElement.getAttribute("stroke")||"none";
svgCanvas.setStrokeColor(strokeColor);
svgCanvas.setStrokeOpacity(strokeOpacity);