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

New commits:
commit 8ca4260edf89000b1b828277356092e27d86d341
Author: László Németh <laszlo.nem...@collabora.com>
Date:   Mon Nov 9 10:12:23 2015 +0100

    loleaflet: fix Writer/Impress at zoom

diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index 203aa9a..1f00b05 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -114,7 +114,9 @@ L.TileLayer = L.GridLayer.extend({
                map.on('paste', this._onPaste, this);
                map.on('zoomend', this._onUpdateCursor, this);
                map.on('zoomend', this._onUpdatePartPageRectangles, this);
-               map.on('zoomend', this._onCellCursorShift, this);
+               if (this._docType === 'spreadsheet') {
+                       map.on('zoomend', this._onCellCursorShift, this);
+               }
                map.on('dragstart', this._onDragStart, this);
                map.on('requestloksession', this._onRequestLOKSession, this);
                map.on('error', this._mapOnError, this);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to