Morphshape canvas export fix - missing end bracket

This commit is contained in:
Jindra Petřík
2014-05-18 20:56:55 +02:00
parent e52e385542
commit e58a04791d
@@ -526,7 +526,7 @@ public class CanvasMorphShapeExporter extends MorphShapeExporterBase {
}
private String useRatioColor(RGB color, RGB colorEnd) {
return "tocolor(ctrans.apply([" + useRatioInt(color.red, colorEnd.red) + "," + useRatioInt(color.green, colorEnd.green) + "," + useRatioInt(color.blue, colorEnd.blue) + ",((" + useRatioInt((color instanceof RGBA) ? ((RGBA) color).alpha : 255, (colorEnd instanceof RGBA) ? ((RGBA) colorEnd).alpha : 255) + ")/255)))";
return "tocolor(ctrans.apply([" + useRatioInt(color.red, colorEnd.red) + "," + useRatioInt(color.green, colorEnd.green) + "," + useRatioInt(color.blue, colorEnd.blue) + ",((" + useRatioInt((color instanceof RGBA) ? ((RGBA) color).alpha : 255, (colorEnd instanceof RGBA) ? ((RGBA) colorEnd).alpha : 255) + ")/255)]))";
}
}