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-75d572ba1dddmaster
parent
83275046b4
commit
d653745a70
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue