From 6793507a34678545f2ba77659835ad3ea956d591 Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 13 Sep 2006 05:28:53 +0000 Subject: [PATCH] for case with no buffer, check lower bounds git-svn-id: http://svn.openlayers.org/trunk/openlayers@1437 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Grid.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index d2565aca0c..a0e064a8bf 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -267,8 +267,8 @@ OpenLayers.Layer.Grid.prototype = // if the test grid coordinates are within the bounds of the // grid, get a reference to the tile. var tile = null; - if ((testRow < this.grid.length) && - (testCell < this.grid[0].length)) { + if ((testRow < this.grid.length) && (testRow >= 0) && + (testCell < this.grid[0].length) && (testCell >= 0)) { tile = this.grid[testRow][testCell]; }