[Libreoffice-commits] online.git: loleaflet/src
Michael Meeks (via logerrit)
logerrit at kemper.freedesktop.org
Tue Aug 18 09:57:56 UTC 2020
loleaflet/src/layer/tile/CalcTileLayer.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
New commits:
commit 6c161540a9ba5942ba052e6c2b8aebed7ec5ef1b
Author: Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Tue Aug 18 10:39:05 2020 +0100
Commit: Michael Meeks <michael.meeks at collabora.com>
CommitDate: Tue Aug 18 11:57:37 2020 +0200
Fix annoying exception on calc close with annotations.
Change-Id: Ic9fbdd443419365470137858dac2e5b3de71c9b7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100906
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js
index 337ba0f68..917b08b1d 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -63,9 +63,11 @@ L.CalcTileLayer = (L.Browser.mobile ? L.TileLayer : L.CanvasTileLayer).extend({
},
clearAnnotations: function () {
- for (var tab in this._annotations) {
- this.hideAnnotations(tab);
- }
+ if (this._map) {
+ for (var tab in this._annotations) {
+ this.hideAnnotations(tab);
+ }
+ } // else during shutdown.
this._annotations = {};
},
More information about the Libreoffice-commits
mailing list