fix part two to #703 - dont try to erase a null geometry

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3155 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-05-17 17:03:07 +00:00
parent a80d7f2826
commit 9679dbb56c

View File

@@ -246,7 +246,9 @@ OpenLayers.Layer.Vector.prototype =
var feature = features[i];
this.features = OpenLayers.Util.removeItem(this.features, feature);
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.