[OpenLayers-Commits] r11109 - sandbox/elemoine/draw-feature/lib/OpenLayers/Handler

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Sat Feb 12 15:16:31 EST 2011


Author: erilem
Date: 2011-02-12 12:16:31 -0800 (Sat, 12 Feb 2011)
New Revision: 11109

Modified:
   sandbox/elemoine/draw-feature/lib/OpenLayers/Handler/Path.js
Log:
handler path - in freehand mode do not add point on mousedown, this is to keep the old behavior and make the measure tests pass again

Modified: sandbox/elemoine/draw-feature/lib/OpenLayers/Handler/Path.js
===================================================================
--- sandbox/elemoine/draw-feature/lib/OpenLayers/Handler/Path.js	2011-02-11 20:54:12 UTC (rev 11108)
+++ sandbox/elemoine/draw-feature/lib/OpenLayers/Handler/Path.js	2011-02-12 20:16:31 UTC (rev 11109)
@@ -236,7 +236,6 @@
             if(this.persist) {
                 this.destroyPersistedFeature();
             }
-            this.addPoint(evt.xy);
             return false;
         } else {
             return !this.stopDown;



More information about the Commits mailing list