loleaflet/src/layer/tile/TileLayer.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3d3625fb9a540a46578c9709c4dd6d44227ec6b2
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Sat Feb 8 09:53:04 2020 -0400
Commit:     Michael Meeks <michael.me...@collabora.com>
CommitDate: Sat Feb 8 23:17:36 2020 +0100

    loleaflet: mobile: don't show the cell cursor when it is read only
    
    Change-Id: I9376de1d32071e1849d9808b864700d81cab6afb
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88266
    Reviewed-by: Michael Meeks <michael.me...@collabora.com>
    Tested-by: Michael Meeks <michael.me...@collabora.com>

diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index 998db324e..8748b4012 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -1009,7 +1009,7 @@ L.TileLayer = L.GridLayer.extend({
                        this._prevCellCursorXY = new L.Point(-1, -1);
                }
 
-               if (textMsg.match('EMPTY')) {
+               if (textMsg.match('EMPTY') || this._map._permission !== 'edit') 
{
                        this._cellCursorTwips = new L.Bounds(new L.Point(0, 0), 
new L.Point(0, 0));
                        this._cellCursor = L.LatLngBounds.createDefault();
                        this._cellCursorXY = new L.Point(-1, -1);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to