diff --git a/lib/OpenLayers/BaseTypes.js b/lib/OpenLayers/BaseTypes.js index 0fc0a2889f..5e06a464b5 100644 --- a/lib/OpenLayers/BaseTypes.js +++ b/lib/OpenLayers/BaseTypes.js @@ -420,8 +420,8 @@ OpenLayers.Bounds.prototype = { * @type OpenLayers.Bounds */ add:function(x, y){ - return new OpenLayers.Box(this.left + x, this.bottom + y, - this.right + x, this.top + y); + return new OpenLayers.Bounds(this.left + x, this.bottom + y, + this.right + x, this.top + y); }, /**