[OpenLayers-Commits] r2345 - sandbox/vector-2.4/lib/OpenLayers
commits at openlayers.org
commits at openlayers.org
Mon Mar 5 16:12:40 EST 2007
Author: sderle
Date: 2007-03-05 16:12:39 -0500 (Mon, 05 Mar 2007)
New Revision: 2345
Modified:
sandbox/vector-2.4/lib/OpenLayers/Geometry.js
Log:
Clone the bounds arg in Geometry.setBounds() rather than just copying the reference.
Modified: sandbox/vector-2.4/lib/OpenLayers/Geometry.js
===================================================================
--- sandbox/vector-2.4/lib/OpenLayers/Geometry.js 2007-03-05 20:35:18 UTC (rev 2344)
+++ sandbox/vector-2.4/lib/OpenLayers/Geometry.js 2007-03-05 21:12:39 UTC (rev 2345)
@@ -53,7 +53,7 @@
break;
case "OpenLayers.Bounds":
- bounds = object;
+ bounds = object.clone();
break;
}
}
More information about the Commits
mailing list