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

Dennis Francis (via logerrit) logerrit at kemper.freedesktop.org
Mon Jul 6 17:08:09 UTC 2020


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

New commits:
commit f04bfc21d7fb6cc0ae2d116884d7cb9dcfcfb0ab
Author:     Dennis Francis <dennis.francis at collabora.com>
AuthorDate: Mon Jul 6 18:52:06 2020 +0530
Commit:     Dennis Francis <dennis.francis at collabora.com>
CommitDate: Mon Jul 6 19:07:49 2020 +0200

    handle the case of first cell-cursor arriving after...
    
    the cell-area selection. Improbable, but can happen in a cypress test.
    
    Change-Id: I112ef88d11818c6e0abc91a8de37c329666dcdbc
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98216
    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/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 15aee7303..ec1d425d7 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -1872,6 +1872,9 @@ L.TileLayer = L.GridLayer.extend({
 					this._twipsToLatLng(boundsTwips.getTopLeft(), this._map.getZoom()),
 					this._twipsToLatLng(boundsTwips.getBottomRight(), this._map.getZoom()));
 
+			if (this._cellCursor === null) {
+				this._cellCursor = L.LatLngBounds.createDefault();
+			}
 			this._updateScrollOnCellSelection(oldSelection, this._cellSelectionArea);
 		} else {
 			this._cellSelectionArea = null;


More information about the Libreoffice-commits mailing list