#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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user