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

Jan Holesovsky kendy at collabora.com
Mon Mar 21 12:36:27 UTC 2016


 loleaflet/src/layer/tile/GridLayer.js |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 5d6ab6e8dc4fef41c649280b5c61b502cf030869
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Mon Mar 21 13:31:12 2016 +0100

    loleaflet bccu#1579: Do not attempt pre-fetching non-active parts.

diff --git a/loleaflet/src/layer/tile/GridLayer.js b/loleaflet/src/layer/tile/GridLayer.js
index 4a6ab4d..af62ef1 100644
--- a/loleaflet/src/layer/tile/GridLayer.js
+++ b/loleaflet/src/layer/tile/GridLayer.js
@@ -826,10 +826,9 @@ L.GridLayer = L.Layer.extend({
 					'tileposy=' + twips.y + ' ' +
 					'tilewidth=' + this._tileWidthTwips + ' ' +
 					'tileheight=' + this._tileHeightTwips;
-			if (coords.part !== this._selectedPart) {
-				msg += ' prefetch=true';
+			if (coords.part === this._selectedPart) {
+				this._map._socket.sendMessage(msg, key);
 			}
-			this._map._socket.sendMessage(msg, key);
 		}
 		else {
 			tile.src = this._tileCache[key];


More information about the Libreoffice-commits mailing list