Fix test failures by changing the failover mode to check for existince of needed variables rather than storing 'newGrid'
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1141 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -219,12 +219,11 @@ OpenLayers.Layer.Grid.prototype =
|
|||||||
|
|
||||||
do {
|
do {
|
||||||
var row;
|
var row;
|
||||||
|
|
||||||
if (newGrid) {
|
row = this.grid[rowidx++];
|
||||||
|
if (!row) {
|
||||||
row = new Array();
|
row = new Array();
|
||||||
this.grid.push(row);
|
this.grid.push(row);
|
||||||
} else {
|
|
||||||
row = this.grid[rowidx++];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tileoffsetlon = startLon;
|
tileoffsetlon = startLon;
|
||||||
@@ -247,12 +246,12 @@ OpenLayers.Layer.Grid.prototype =
|
|||||||
var px = new OpenLayers.Pixel(x, y);
|
var px = new OpenLayers.Pixel(x, y);
|
||||||
var tile;
|
var tile;
|
||||||
|
|
||||||
if (newGrid) {
|
tile = row[colidx++];
|
||||||
|
if (!tile) {
|
||||||
tile = this.addTile(tileBounds, px);
|
tile = this.addTile(tileBounds, px);
|
||||||
tile.draw();
|
tile.draw();
|
||||||
row.push(tile);
|
row.push(tile);
|
||||||
} else {
|
} else {
|
||||||
tile = row[colidx++];
|
|
||||||
tile.moveTo(tileBounds, px);
|
tile.moveTo(tileBounds, px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user