[Libreoffice-commits] online.git: Branch 'distro/collabora/milestone-7' - loleaflet/src

Jan Holesovsky kendy at collabora.com
Mon Mar 21 12:35:25 UTC 2016


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

New commits:
commit faa43745d14c144f5f5c57ca71566709a9434ad1
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 4f1d8c4..0229f7c 100644
--- a/loleaflet/src/layer/tile/GridLayer.js
+++ b/loleaflet/src/layer/tile/GridLayer.js
@@ -691,10 +691,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