From 4a95d4fcf015f4f63cba34b6f6af1cf0345c8c33 Mon Sep 17 00:00:00 2001 From: Aron Budea Date: Thu, 26 Mar 2020 12:46:25 +0100 Subject: 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 Reviewed-by: Aron Budea (cherry picked from commit 5bb2840854bce28f07925d6bc2ee618897600048) Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91112 Tested-by: Andras Timar Reviewed-by: Andras Timar --- loleaflet/src/control/Control.PartsPreview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3