Fix Issue 62: can now set color to none right in the picker (uplift to jGraduate r71)

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1295 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2010-01-29 05:39:57 +00:00
parent bd64fc421e
commit be04bdc1c1
11 changed files with 103 additions and 125 deletions

View File

@@ -5969,7 +5969,7 @@ function BatchCommand(text) {
// now set the current paint object
cur_properties.stroke_paint = p;
if (p.type == "solidColor") {
this.setStrokeColor("#"+p.solidColor);
this.setStrokeColor(p.solidColor != "none" ? "#"+p.solidColor : "none");
}
else if(p.type == "linearGradient") {
canvas.strokeGrad = p.linearGradient;
@@ -5988,7 +5988,7 @@ function BatchCommand(text) {
// now set the current paint object
cur_properties.fill_paint = p;
if (p.type == "solidColor") {
this.setFillColor("#"+p.solidColor);
this.setFillColor(p.solidColor != "none" ? "#"+p.solidColor : "none");
}
else if(p.type == "linearGradient") {
canvas.fillGrad = p.linearGradient;