diff --git a/changelog.txt b/changelog.txt index f67b632b..bbc3f324 100644 --- a/changelog.txt +++ b/changelog.txt @@ -12,6 +12,7 @@ OPENSEADRAGON CHANGELOG * Added getFullyLoaded method and "fully-loaded-change" event to TiledImage to know when tiles are fully loaded (#837) * Fixed: Initial tile load wasn't happening in parallel (#1014) * Added Zoomify tile source (#863) +* Fixed problem with "sparse image" DZI files (#995) 2.2.1: diff --git a/src/dzitilesource.js b/src/dzitilesource.js index 68647125..6c95dbee 100644 --- a/src/dzitilesource.js +++ b/src/dzitilesource.js @@ -198,7 +198,7 @@ $.extend( $.DziTileSource.prototype, $.TileSource.prototype, /** @lends OpenSead yMax = yMin + rect.height * scale; xMin = Math.floor( xMin / this._tileWidth ); - yMin = Math.floor( yMin / this._tileWidth ); + yMin = Math.floor( yMin / this._tileWidth ); // DZI tiles are square, so we just use _tileWidth xMax = Math.ceil( xMax / this._tileWidth ); yMax = Math.ceil( yMax / this._tileWidth );