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

New commits:
commit faa43745d14c144f5f5c57ca71566709a9434ad1
Author: Jan Holesovsky <[email protected]>
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];
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to