loleaflet/src/layer/tile/ImpressTileLayer.js |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 0fe4c89e5599bd5f1c2532bd687609df8b95ce17
Author: Henry Castro <hcas...@collabora.com>
Date:   Mon May 30 20:23:54 2016 -0400

    loleaflet: adjust partName and partHash

diff --git a/loleaflet/src/layer/tile/ImpressTileLayer.js 
b/loleaflet/src/layer/tile/ImpressTileLayer.js
index 3d2d58a..2d8e8c0 100644
--- a/loleaflet/src/layer/tile/ImpressTileLayer.js
+++ b/loleaflet/src/layer/tile/ImpressTileLayer.js
@@ -126,14 +126,15 @@ L.ImpressTileLayer = L.TileLayer.extend({
                                this._preFetchPart = this._selectedPart;
                                this._preFetchBorder = null;
                        }
-                       var partNames = textMsg.match(/[^\r\n]+/g);
+                       var partMatch = textMsg.match(/[^\r\n]+/g);
                        // only get the last matches
-                       partNames = partNames.slice(partNames.length - 
this._parts);
+                       var partHashes = partMatch.slice(partMatch.length - 
this._parts);
+                       // var partNames = partMatch.slice(partMatch.length - 2 
* this._parts, partMatch.length - this._parts - 1);
                        this._map.fire('updateparts', {
                                selectedPart: this._selectedPart,
                                parts: this._parts,
                                docType: this._docType,
-                               partNames: partNames
+                               partNames: partHashes
                        });
                }
        }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to