[OpenLayers-Commits] r4215 - sandbox/camptocamp/feature/lib/OpenLayers/Handler

commits at openlayers.org commits at openlayers.org
Tue Sep 11 10:16:35 EDT 2007


Author: pgiraud
Date: 2007-09-11 10:16:34 -0400 (Tue, 11 Sep 2007)
New Revision: 4215

Modified:
   sandbox/camptocamp/feature/lib/OpenLayers/Handler/Polygon.js
Log:
added clearBounds call, fixes problem on IE with the first line draw (see #666)

Modified: sandbox/camptocamp/feature/lib/OpenLayers/Handler/Polygon.js
===================================================================
--- sandbox/camptocamp/feature/lib/OpenLayers/Handler/Polygon.js	2007-09-11 13:11:39 UTC (rev 4214)
+++ sandbox/camptocamp/feature/lib/OpenLayers/Handler/Polygon.js	2007-09-11 14:16:34 UTC (rev 4215)
@@ -82,6 +82,7 @@
         var index = this.line.geometry.components.length - 2;
         this.line.geometry.components[index].x = this.point.geometry.x;
         this.line.geometry.components[index].y = this.point.geometry.y;
+        this.line.geometry.components[index].clearBounds();
     },
 
     /**



More information about the Commits mailing list