[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3-0' - loleaflet/src

Pranav Kant pranavk at collabora.co.uk
Fri Feb 9 16:58:58 UTC 2018


 loleaflet/src/map/Map.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 84f34aace2190126320966d939acf7a8785828f9
Author: Pranav Kant <pranavk at collabora.co.uk>
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 <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

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();
 			}


More information about the Libreoffice-commits mailing list