OpenLayers OpenLayers

Changeset 1437

Show
Ignore:
Timestamp:
09/13/06 01:28:53 (2 years ago)
Author:
euzuro
Message:

for case with no buffer, check lower bounds

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Layer/Grid.js

    r1424 r1437  
    268268            //  grid, get a reference to the tile. 
    269269            var tile = null; 
    270             if ((testRow < this.grid.length) &&  
    271                 (testCell < this.grid[0].length)) { 
     270            if ((testRow < this.grid.length) && (testRow >= 0) && 
     271                (testCell < this.grid[0].length) && (testCell >= 0)) { 
    272272                tile = this.grid[testRow][testCell]; 
    273273            }