OpenLayers OpenLayers

Changeset 7061

Show
Ignore:
Timestamp:
05/05/08 02:55:07 (8 months ago)
Author:
elemoine
Message:

Cannot modify a feature (linestring) that have two points at the same position, r=me, thanks pvalsecc for the patch and the detailed justification of this patch. (closes #1533)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Control/ModifyFeature.js

    r6833 r7061  
    577577        } 
    578578        collectComponentVertices.call(this, this.feature.geometry); 
     579        this.layer.addFeatures(this.virtualVertices, {silent: true}); 
    579580        this.layer.addFeatures(this.vertices, {silent: true}); 
    580         this.layer.addFeatures(this.virtualVertices, {silent: true}); 
    581581    }, 
    582582