From 59e40989b71c3ba5a74df2a210322905c7eecc9b Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 19 Jul 2007 17:22:53 +0000 Subject: [PATCH] #850: Patch from pgiraud to fix typo in Collection.js getBounds. Reviewed by Mr. Euz. git-svn-id: http://svn.openlayers.org/trunk/openlayers@3780 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Geometry/Collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Geometry/Collection.js b/lib/OpenLayers/Geometry/Collection.js index 5959497500..deb4fe1a40 100644 --- a/lib/OpenLayers/Geometry/Collection.js +++ b/lib/OpenLayers/Geometry/Collection.js @@ -104,7 +104,7 @@ OpenLayers.Geometry.Collection = OpenLayers.Class(OpenLayers.Geometry, { */ calculateBounds: function() { this.bounds = null; - if ( !this.components || (this.components.length > 0)) { + if ( this.components && this.components.length > 0) { this.setBounds(this.components[0].getBounds()); for (var i = 1; i < this.components.length; i++) { this.extendBounds(this.components[i].getBounds());