missing var declaration in LineString.js, p=jorix, r=me (closes #3001)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11000 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -578,7 +578,7 @@ OpenLayers.Geometry.LineString = OpenLayers.Class(OpenLayers.Geometry.Curve, {
|
|||||||
var maxDistance = 0;
|
var maxDistance = 0;
|
||||||
var indexFarthest = 0;
|
var indexFarthest = 0;
|
||||||
|
|
||||||
for (var index = firstPoint; index < lastPoint; index++) {
|
for (var index = firstPoint, distance; index < lastPoint; index++) {
|
||||||
distance = perpendicularDistance(points[firstPoint], points[lastPoint], points[index]);
|
distance = perpendicularDistance(points[firstPoint], points[lastPoint], points[index]);
|
||||||
if (distance > maxDistance) {
|
if (distance > maxDistance) {
|
||||||
maxDistance = distance;
|
maxDistance = distance;
|
||||||
|
|||||||
Reference in New Issue
Block a user