Commit d1545f6d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

use the same method for adding point everywhere

parent 7a76e4c8
......@@ -119,7 +119,7 @@ public class PolylineData implements Serializable, Drawable {
public PolylineData(PolylineData param) {
points = new ArrayList<>();
for (Point2D point : param.getPoints()) {
points.add(new Point2D.Double(point.getX(), point.getY()));
addPoint(new Point2D.Double(point.getX(), point.getY()));
}
beginAtd = new ArrowTypeData(param.getBeginAtd());
endAtd = new ArrowTypeData(param.getEndAtd());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment