[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-1-0' - loleaflet/src
Henry Castro
hcastro at collabora.com
Tue May 31 14:46:01 UTC 2016
loleaflet/src/layer/tile/ImpressTileLayer.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 50486c3e331ece6b40f503be59b09e3d3af230c4
Author: Henry Castro <hcastro at 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
});
}
}
More information about the Libreoffice-commits
mailing list