SVG import - close ellipse

This commit is contained in:
Jindra Petřík
2015-12-27 06:43:31 +01:00
parent 09d4772eef
commit 9671d67c27
@@ -821,6 +821,7 @@ public class ShapeImporter {
double sqrt2RYHalf = Math.sqrt(2) * ry / 2;
double sqrt2Minus1RY = (Math.sqrt(2) - 1) * ry;
Point startPoint = new Point(0, 0);
List<PathCommand> pathCommands = new ArrayList<>();
PathCommand scr = new PathCommand();
scr.command = 'M';
@@ -866,6 +867,11 @@ public class ShapeImporter {
pathCommands.add(cer);
}
PathCommand serz = new PathCommand();
serz.command = 'Z';
serz.params = new double[]{startPoint.x, startPoint.y};
pathCommands.add(serz);
processCommands(shapeNum, shapes, pathCommands, transform, style);
}