Point Handler should not create feature if it is not active anymore, p=me,erilem r=ahocevar (closes #3172)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11701 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
bartvde
2011-03-12 16:03:57 +00:00
parent 770a0f31f5
commit 318003d399
2 changed files with 11 additions and 3 deletions

View File

@@ -284,7 +284,7 @@ OpenLayers.Handler.Point = OpenLayers.Class(OpenLayers.Handler, {
if(cancel || !this.persist) {
this.destroyFeature();
}
if(!noNew) {
if(!noNew && this.active) {
this.createFeature();
}
},