[OpenLayers-Commits] r3155 - trunk/openlayers/lib/OpenLayers/Layer
commits at openlayers.org
commits at openlayers.org
Thu May 17 13:03:07 EDT 2007
Author: euzuro
Date: 2007-05-17 13:03:07 -0400 (Thu, 17 May 2007)
New Revision: 3155
Modified:
trunk/openlayers/lib/OpenLayers/Layer/Vector.js
Log:
fix part two to #703 - dont try to erase a null geometry
Modified: trunk/openlayers/lib/OpenLayers/Layer/Vector.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/Vector.js 2007-05-17 16:39:21 UTC (rev 3154)
+++ trunk/openlayers/lib/OpenLayers/Layer/Vector.js 2007-05-17 17:03:07 UTC (rev 3155)
@@ -246,8 +246,10 @@
var feature = features[i];
this.features = OpenLayers.Util.removeItem(this.features, feature);
- this.renderer.eraseGeometry(feature.geometry);
-
+ if (feature.geometry) {
+ this.renderer.eraseGeometry(feature.geometry);
+ }
+
//in the case that this feature is one of the selected features,
// remove it from that array as well.
if (OpenLayers.Util.indexOf(this.selectedFeatures, feature) != -1){
More information about the Commits
mailing list