[OpenLayers-Commits] r1777 - in sandbox/bertil: examples lib/OpenLayers/Feature/Geometry

commits at openlayers.org commits at openlayers.org
Wed Nov 8 10:43:18 EST 2006


Author: bertil
Date: 2006-11-08 10:43:17 -0500 (Wed, 08 Nov 2006)
New Revision: 1777

Modified:
   sandbox/bertil/examples/vector.html
   sandbox/bertil/lib/OpenLayers/Feature/Geometry/Curve.js
Log:
mousecursor


Modified: sandbox/bertil/examples/vector.html
===================================================================
--- sandbox/bertil/examples/vector.html	2006-11-08 15:24:17 UTC (rev 1776)
+++ sandbox/bertil/examples/vector.html	2006-11-08 15:43:17 UTC (rev 1777)
@@ -19,7 +19,7 @@
 
             toolbar = new OpenLayers.Control.EditionToolbar();
             navigation = new OpenLayers.Control.MouseDefaults();
-            selection = new OpenLayers.Control.Edition.Selection()
+            selection = new OpenLayers.Control.Edition.Selection();
             drawLinearPath = new OpenLayers.Control.Edition.DrawLinearPath();
             toolbar.addTools([navigation, selection, drawLinearPath]);
 			

Modified: sandbox/bertil/lib/OpenLayers/Feature/Geometry/Curve.js
===================================================================
--- sandbox/bertil/lib/OpenLayers/Feature/Geometry/Curve.js	2006-11-08 15:24:17 UTC (rev 1776)
+++ sandbox/bertil/lib/OpenLayers/Feature/Geometry/Curve.js	2006-11-08 15:43:17 UTC (rev 1777)
@@ -44,7 +44,7 @@
     },
     
     addPoint: function(point, index) {
-        if(point.CLASS_NAME == "OpenLayers.Feature.Geometry.Point"){
+        if(point && point.CLASS_NAME == "OpenLayers.Feature.Geometry.Point"){
             if (index) {
                 this.path = this.path.slice(0, index).concat([point]).concat(this.path.slice(index, (this.path.length - 1)));
             } else {



More information about the Commits mailing list