Merge pull request #56 from jorix/3576-MeasureImm

#3576 Incorrect geometry passed to measurePartial
This commit is contained in:
Éric Lemoine
2012-03-03 23:59:54 -08:00
2 changed files with 5 additions and 5 deletions

View File

@@ -231,8 +231,8 @@ OpenLayers.Control.Measure = OpenLayers.Class(OpenLayers.Control, {
* mouseposition. feature - {<OpenLayers.Feature.Vector>} The sketch feature.
*/
measureImmediate : function(point, feature, drawing) {
if (drawing && this.delayedTrigger === null &&
!this.handler.freehandMode(this.handler.evt)) {
if (drawing && !this.handler.freehandMode(this.handler.evt)) {
this.cancelDelay();
this.measure(feature.geometry, "measurepartial");
}
},