[Libreoffice-commits] online.git: loleaflet/src

Szymon Kłos (via logerrit) logerrit at kemper.freedesktop.org
Thu Oct 3 08:48:24 UTC 2019


 loleaflet/src/layer/tile/TileLayer.js |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 4b918765f5949957ee3f81a31dc02f4924b2cb89
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu Oct 3 10:46:25 2019 +0200
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Thu Oct 3 10:48:06 2019 +0200

    Avoid undefined on switching the tabs in Calc
    
    Change-Id: I2347581e9b9ebc4e3aed51de81e02f47068dab4a
    Reviewed-on: https://gerrit.libreoffice.org/80103
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
    Tested-by: Szymon Kłos <szymon.klos at collabora.com>

diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 24f681416..c6d5a71af 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -1394,6 +1394,10 @@ L.TileLayer = L.GridLayer.extend({
 
 	_updateReferenceMarks: function() {
 		this._clearReferences();
+
+		if (!this._referencesAll)
+			return;
+
 		for (var i = 0; i < this._referencesAll.length; i++) {
 			// Avoid doubed marks, add only marks for current sheet
 			if ((this._references == null || !hasMark(this._references.getLayers(), this._referencesAll[i].mark))


More information about the Libreoffice-commits mailing list