summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Budea <aron.budea@collabora.com>2020-03-26 12:46:25 +0100
committerAndras Timar <andras.timar@collabora.com>2020-03-26 13:15:45 +0100
commit4a95d4fcf015f4f63cba34b6f6af1cf0345c8c33 (patch)
tree9ac23829231adbc9ba5225fee2eab181186a9ef3
parent8686b092d579df18ce9f16fe28afd028ca220eea (diff)
loleaflet: Wrong previews after reordering slides
While the original this.options was undefined, replacing it causes a regression. This commit partially reverts e82878d45b96d478ecdf6547fae42fe3a6dd7f26. Change-Id: I92a4338ca3bb04ed1e36664b2eaed4b7a23c7183 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91097 Tested-by: Aron Budea <aron.budea@collabora.com> Reviewed-by: Aron Budea <aron.budea@collabora.com> (cherry picked from commit 5bb2840854bce28f07925d6bc2ee618897600048) Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91112 Tested-by: Andras Timar <andras.timar@collabora.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--loleaflet/src/control/Control.PartsPreview.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/loleaflet/src/control/Control.PartsPreview.js b/loleaflet/src/control/Control.PartsPreview.js
index 6a40e9d02..c6cd021fb 100644
--- a/loleaflet/src/control/Control.PartsPreview.js
+++ b/loleaflet/src/control/Control.PartsPreview.js
@@ -496,7 +496,7 @@ L.Control.PartsPreview = L.Control.extend({
var that = this.partsPreview;
setTimeout(function () {
for (var i = 0; i < that._previewTiles.length; ++i) {
- that._map.getPreview(i, that.options.maxWidth, that.options.maxHeight, {autoUpdate: that.options.autoUpdate, broadcast: true});
+ that._map.getPreview(i, this.options.maxWidth, this.options.maxHeight, {autoUpdate: that.options.autoUpdate, broadcast: true});
}
}, 1000);
}