From 52fd82d4bee450400702615b77b5957c7df6ac5b Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Thu, 1 Sep 2016 10:02:42 -0700 Subject: [PATCH] Changelog and tweak for #995 --- changelog.txt | 1 + src/dzitilesource.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 );