Revision 42477 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.jts/src/main/java/org/gvsig/fmap/geom/jts/primitive/curve/line/AbstractLine.java
AbstractLine.java | ||
---|---|---|
302 | 302 |
* @see org.gvsig.fmap.geom.primitive.OrientablePrimitive#closePrimitive() |
303 | 303 |
*/ |
304 | 304 |
public void closePrimitive() { |
305 |
if (!coordinates.isEmpty() && !coordinates.get(0).equals(coordinates.get(coordinates.size()-1))) {
|
|
305 |
if (!coordinates.isEmpty() && !isClosed()) {
|
|
306 | 306 |
coordinates.add((Coordinate)coordinates.get(0).clone()); |
307 | 307 |
} |
308 | 308 |
} |
Also available in: Unified diff