loleaflet/src/control/Control.PartsPreview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 5bb2840854bce28f07925d6bc2ee618897600048 Author: Aron Budea <aron.bu...@collabora.com> AuthorDate: Thu Mar 26 12:46:25 2020 +0100 Commit: Aron Budea <aron.bu...@collabora.com> CommitDate: Thu Mar 26 12:57:26 2020 +0100 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.bu...@collabora.com> Reviewed-by: Aron Budea <aron.bu...@collabora.com> diff --git a/loleaflet/src/control/Control.PartsPreview.js b/loleaflet/src/control/Control.PartsPreview.js index dd426b186..0dbff5411 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); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits