Revision 424 org.gvsig.vectorediting/trunk/org.gvsig.vectorediting/org.gvsig.vectorediting.lib/org.gvsig.vectorediting.lib.prov/org.gvsig.vectorediting.lib.prov.editvertex/src/main/java/org/gvsig/vectorediting/lib/prov/editvertex/operation/PolygonEditVertexOperation.java
PolygonEditVertexOperation.java | ||
---|---|---|
36 | 36 |
return geom; |
37 | 37 |
} |
38 | 38 |
int indexToInsert = index; |
39 |
if (polygon.getVertex(0).equals(lastVertex)) { |
|
39 |
if (index == 0 && polygon.getVertex(0).equals(lastVertex)) {
|
|
40 | 40 |
indexToInsert = numVertices - 1; |
41 | 41 |
} |
42 | 42 |
|
Also available in: Unified diff