[OpenLayers-Commits] r2379 - in sandbox/vector-2.4: lib/OpenLayers/Geometry tests/Geometry
commits at openlayers.org
commits at openlayers.org
Tue Mar 6 10:17:40 EST 2007
Author: euzuro
Date: 2007-03-06 10:17:23 -0500 (Tue, 06 Mar 2007)
New Revision: 2379
Modified:
sandbox/vector-2.4/lib/OpenLayers/Geometry/Curve.js
sandbox/vector-2.4/tests/Geometry/test_Polygon.html
Log:
update to pass bounds instead of point to extendBounds() should have been part of r2378
Modified: sandbox/vector-2.4/lib/OpenLayers/Geometry/Curve.js
===================================================================
--- sandbox/vector-2.4/lib/OpenLayers/Geometry/Curve.js 2007-03-06 15:05:41 UTC (rev 2378)
+++ sandbox/vector-2.4/lib/OpenLayers/Geometry/Curve.js 2007-03-06 15:17:23 UTC (rev 2379)
@@ -99,7 +99,7 @@
} else {
this.path.push(point);
}
- this.extendBounds(point);
+ this.extendBounds(point.getBounds());
}
},
Modified: sandbox/vector-2.4/tests/Geometry/test_Polygon.html
===================================================================
--- sandbox/vector-2.4/tests/Geometry/test_Polygon.html 2007-03-06 15:05:41 UTC (rev 2378)
+++ sandbox/vector-2.4/tests/Geometry/test_Polygon.html 2007-03-06 15:17:23 UTC (rev 2379)
@@ -18,6 +18,7 @@
function test_01a_Polygon_constructor (t) {
t.plan( 3 );
+ alert("test");
polygon = new OpenLayers.Geometry.Polygon([linearRing]);
t.ok( polygon instanceof OpenLayers.Geometry.Polygon, "new OpenLayers.Geometry.Polygon returns polygon object" );
t.eq( polygon.CLASS_NAME, "OpenLayers.Geometry.Polygon", "polygon.CLASS_NAME is set correctly");
More information about the Commits
mailing list