From 4fcd61f2763a72e29690a3d8f5712145ed509d1e Mon Sep 17 00:00:00 2001 From: ahocevar Date: Tue, 26 Aug 2008 07:39:21 +0000 Subject: [PATCH] Clear point bounds after changing coordinates. Prevents strange behaviour of IE when doing getBounds(). r=elemoine (closes #1690) git-svn-id: http://svn.openlayers.org/trunk/openlayers@7859 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Handler/Path.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/OpenLayers/Handler/Path.js b/lib/OpenLayers/Handler/Path.js index 4bf4ebc695..54f27bbd4b 100644 --- a/lib/OpenLayers/Handler/Path.js +++ b/lib/OpenLayers/Handler/Path.js @@ -189,6 +189,7 @@ OpenLayers.Handler.Path = OpenLayers.Class(OpenLayers.Handler.Point, { var lonlat = this.map.getLonLatFromPixel(evt.xy); this.point.geometry.x = lonlat.lon; this.point.geometry.y = lonlat.lat; + this.point.geometry.clearBounds(); if(this.mouseDown && this.freehandMode(evt)) { this.addPoint(); } else {