Revision 40327

View differences:

trunk/extensions/extGraph/src/org/gvsig/graph/core/NetworkUtils.java
696 696
		if (direction > 0) // Hemos entrado por el 1 hacia el 2 (al 2 no
697 697
		// llegamos)
698 698
		{
699
			longTo = longReal * (pct1 + pct2);
699
			longTo = longReal * pct2; //longReal * (pct1 + pct2);
700 700
			numVertices = 0;
701 701
			for (j = 0; j < coords.length - 1; j++) {
702 702
				c1 = coords[j];
......
793 793

  
794 794
		} // if else
795 795

  
796
		if (savedCoords.size() < 2) {
797
			Coordinate[] cero = new Coordinate[2];
798
			cero[0] = (Coordinate) savedCoords.get(0);
799
			cero[1] = (Coordinate) savedCoords.get(0);
800
			return geomFactory.createLineString(cero);
801
		}
796 802
		return geomFactory.createLineString((Coordinate[]) savedCoords
797 803
				.toArray(new Coordinate[0]));
798 804
	}

Also available in: Unified diff