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

New commits:
commit 5d6ab6e8dc4fef41c649280b5c61b502cf030869
Author: Jan Holesovsky <ke...@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];
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to