fixed a bug in the polygon merger

This commit is contained in:
hneemann 2016-04-16 18:01:16 +02:00
parent e49d0702d1
commit a3767b80a9
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,8 @@ public class Polygon implements Iterable<Vector> {
* @return this for chained calls
*/
public Polygon append(Polygon p2) {
points.addAll(p2.points);
for (int i = 1; i < p2.points.size(); i++)
points.add(p2.points.get(i));
return this;
}

View File

@ -104,6 +104,5 @@ public class GraphicLineCollector implements Graphic {
public void drawTo(Graphic gr) {
for (PolygonSet p : polys.values())
p.drawTo(gr);
}
}