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());