Revision 42190

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.generalpath/src/main/java/org/gvsig/fmap/geom/generalpath/primitive/OrientablePrimitive2D.java
259 259
     * @see org.gvsig.fmap.geom.primitive.OrientablePrimitive#getCoordinateAt(int, int)
260 260
     */
261 261
    public double getCoordinateAt(int index, int dimension) {
262
        if (index > gp.getNumCoords()){
262
        if (index > getNumVertices()){
263 263
            throw new ArrayIndexOutOfBoundsException();
264 264
        }
265
        return gp.getPointAt(index).getCoordinateAt(dimension);
265
        return getVertex(index).getCoordinateAt(dimension);
266 266
    }
267 267

  
268 268
    /* (non-Javadoc)

Also available in: Unified diff