#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
This commit is contained in:
crschmidt
2007-07-19 17:22:53 +00:00
parent a34f4570f3
commit 59e40989b7

View File

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