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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Sep 12 09:53:01 UTC 2018


 loleaflet/src/core/Socket.js |    1 +
 loleaflet/src/map/Map.js     |    1 +
 2 files changed, 2 insertions(+)

New commits:
commit 53cb932bbbbd8b6e64d755c9e941cb54642d6531
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Wed Sep 12 10:27:45 2018 +0200
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Wed Sep 12 11:23:22 2018 +0200

    loleaflet: Need to call _update after invalidatetiles-all
    
    Earlier invalidatiles was requested the new tiles too, but now
    invalidatetiles + _update makes to request all the visible tiles.
    
    Change-Id: Ib3a07f748d270056d5f30cdb1731b6cf4e63c3ef

diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index 23be707b2..991626487 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -797,6 +797,7 @@ L.Socket = L.Class.extend({
 				this._reconnecting = false;
 				this._map._docLayer._resetClientVisArea();
 				this._map._docLayer._onMessage('invalidatetiles: EMPTY', null);
+				this._map._docLayer._update();
 				this._map.fire('statusindicator', {statusType: 'reconnected'});
 				this._map.setPermission(this._map.options.permission);
 			}
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index af0945c2a..c87174880 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -853,6 +853,7 @@ L.Map = L.Evented.extend({
 				if (this._docLayer) {
 					this._docLayer._onMessage('invalidatetiles: EMPTY', null);
 					this._docLayer._resetClientVisArea();
+					this._docLayer._update();
 				}
 
 				if (vex.dialogID > 0) {


More information about the Libreoffice-commits mailing list