loleaflet/src/map/Map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 84f34aace2190126320966d939acf7a8785828f9 Author: Pranav Kant <[email protected]> Date: Fri Feb 2 18:20:10 2018 +0530 Guard this Change-Id: I8f5824e16ed734a5ed7ae8ad42c1107be2c8a9d2 (cherry picked from commit 02de8cecbfb317c78602b3dca6a148e8149b1091) Reviewed-on: https://gerrit.libreoffice.org/49402 Reviewed-by: Jan Holesovsky <[email protected]> Tested-by: Jan Holesovsky <[email protected]> diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js index 2e9054f4..10f5acfd 100644 --- a/loleaflet/src/map/Map.js +++ b/loleaflet/src/map/Map.js @@ -166,7 +166,7 @@ L.Map = L.Evented.extend({ } else { this._activate(); } - } else { + } else if (this._docLayer) { // remove the comments and changes this._docLayer.clearAnnotations(); } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
