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

Dennis Francis (via logerrit) logerrit at kemper.freedesktop.org
Sun Jul 5 14:27:46 UTC 2020


 loleaflet/src/layer/tile/CalcTileLayer.js |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 7b8df1fd0e568cb34e24c81cf88c758b8e3b0e2a
Author:     Dennis Francis <dennis.francis at collabora.com>
AuthorDate: Thu May 21 23:43:17 2020 +0530
Commit:     Dennis Francis <dennis.francis at collabora.com>
CommitDate: Sun Jul 5 16:27:26 2020 +0200

    Avoid double parse/load of the first sheet geometry message
    
    Change-Id: I381c63608dd4858b7f4e6e22d3f1d010cd2308e0
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98102
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Dennis Francis <dennis.francis at collabora.com>

diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js
index 1f9b8d966..24bcba0ab 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -613,8 +613,10 @@ L.CalcTileLayer = L.TileLayer.extend({
 				this._tileWidthTwips, this._tileHeightTwips,
 				this._tileSize, this._tilePixelScale);
 		}
+		else {
+			this.sheetGeometry.update(jsonMsgObj);
+		}
 
-		this.sheetGeometry.update(jsonMsgObj);
 		this.sheetGeometry.setViewArea(this._pixelsToTwips(this._map._getTopLeftPoint()),
 			this._pixelsToTwips(this._map.getSize()));
 		this._updateHeadersGridLines(undefined, true /* updateCols */,


More information about the Libreoffice-commits mailing list