loleaflet/src/layer/tile/GridLayer.js | 1 + 1 file changed, 1 insertion(+)
New commits: commit 1bc10345432aa1858867228ecb57b46c1ccbde1c Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Thu Feb 13 04:25:36 2020 +0000 Commit: Ashod Nakashian <ashnak...@gmail.com> CommitDate: Thu Feb 13 06:07:14 2020 +0100 Avoid exception dragging during shutdown. Really TileLayer.js should have a clean on remove that dis-connects from drag, resize etc. but it doesn't yet. Change-Id: Ia2c2268875187a2f1115b7d357fd56ab825bb77f Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88578 Reviewed-by: Michael Meeks <michael.me...@collabora.com> Tested-by: Ashod Nakashian <ashnak...@gmail.com> diff --git a/loleaflet/src/layer/tile/GridLayer.js b/loleaflet/src/layer/tile/GridLayer.js index a69741462..9a9d7f004 100644 --- a/loleaflet/src/layer/tile/GridLayer.js +++ b/loleaflet/src/layer/tile/GridLayer.js @@ -446,6 +446,7 @@ L.GridLayer = L.Layer.extend({ }, _updateScrollOffset: function () { + if (!this._map) return; var centerPixel = this._map.project(this._map.getCenter()); var newScrollPos = centerPixel.subtract(this._map.getSize().divideBy(2)); var x = Math.round(newScrollPos.x < 0 ? 0 : newScrollPos.x); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits