missing var's, p=jorix (thx), r=me (closes #2960)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10951 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2010-12-06 20:15:15 +00:00
parent b125e045d1
commit 831420aac2
6 changed files with 11 additions and 11 deletions

View File

@@ -219,7 +219,7 @@ OpenLayers.Layer.Zoomify = OpenLayers.Class(OpenLayers.Layer.Grid, {
*/
getImageSize: function() {
if (arguments.length > 0) {
bounds = this.adjustBounds(arguments[0]);
var bounds = this.adjustBounds(arguments[0]);
var res = this.map.getResolution();
var x = Math.round((bounds.left - this.tileOrigin.lon) / (res * this.tileSize.w));
var y = Math.round((this.tileOrigin.lat - bounds.top) / (res * this.tileSize.h));