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

New commits:
commit f04bfc21d7fb6cc0ae2d116884d7cb9dcfcfb0ab
Author:     Dennis Francis <dennis.fran...@collabora.com>
AuthorDate: Mon Jul 6 18:52:06 2020 +0530
Commit:     Dennis Francis <dennis.fran...@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 <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Dennis Francis <dennis.fran...@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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to