[Libreoffice-commits] online.git: loleaflet/src
Tor Lillqvist
tml at collabora.com
Thu Jan 12 10:27:34 UTC 2017
loleaflet/src/layer/tile/CalcTileLayer.js | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
New commits:
commit e8f55142ef2bf5624e03d4b51cbe572fe983b71b
Author: Tor Lillqvist <tml at collabora.com>
Date: Thu Jan 12 12:17:27 2017 +0200
Do the oldhash thing for Calc documents, too
(Some serious copy-pasta here.)
Change-Id: Icb5a7b6783b75d67f00cfbdccbba8c402008ff99
diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js
index 39869a6..b120e16 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -44,6 +44,7 @@ L.CalcTileLayer = L.TileLayer.extend({
var tilePositionsX = '';
var tilePositionsY = '';
+ var oldHashes = '';
var needsNewTiles = false;
for (var key in this._tiles) {
@@ -67,6 +68,15 @@ L.CalcTileLayer = L.TileLayer.extend({
tilePositionsY += ',';
}
tilePositionsY += tileTopLeft.y;
+ if (oldHashes !== '') {
+ oldHashes += ',';
+ }
+ if (this._tiles[key].oldhash === undefined) {
+ oldHashes += '0';
+ }
+ else {
+ oldHashes += this._tiles[key].oldhash;
+ }
needsNewTiles = true;
if (this._debug) {
this._debugAddInvalidationData(this._tiles[key]);
@@ -89,7 +99,8 @@ L.CalcTileLayer = L.TileLayer.extend({
'tileposx=' + tilePositionsX + ' ' +
'tileposy=' + tilePositionsY + ' ' +
'tilewidth=' + this._tileWidthTwips + ' ' +
- 'tileheight=' + this._tileHeightTwips;
+ 'tileheight=' + this._tileHeightTwips + ' ' +
+ 'oldhash=' + oldHashes;;
this._map._socket.sendMessage(message, '');
if (this._debug) {
More information about the Libreoffice-commits
mailing list