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

László Németh laszlo.nemeth at collabora.com
Mon Nov 9 01:13:38 PST 2015


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

New commits:
commit 8ca4260edf89000b1b828277356092e27d86d341
Author: László Németh <laszlo.nemeth at 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);


More information about the Libreoffice-commits mailing list