[Libreoffice-commits] online.git: loleaflet/src

Mihai Varga mihai.varga at collabora.com
Thu May 28 01:02:33 PDT 2015


 loleaflet/src/layer/tile/TileLayer.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f999c337b9ac4455d4181df8aa154194d04ab027
Author: Mihai Varga <mihai.varga at collabora.com>
Date:   Thu May 28 11:02:03 2015 +0300

    Better differentiate commands, status vs statusindicator

diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 1f2d5ba..467fe9d 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -177,7 +177,7 @@ L.TileLayer = L.GridLayer.extend({
 				}
 			}
 		}
-		else if (textMsg.startsWith('status')) {
+		else if (textMsg.startsWith('status:')) {
 			var command = this._parseServerCmd(textMsg);
 			if (command.width && command.height && this._documentInfo !== textMsg) {
 				this._docWidthTwips = command.width;
@@ -194,7 +194,7 @@ L.TileLayer = L.GridLayer.extend({
 				this._update();
 			}
 		}
-		else if (textMsg.startsWith('tile')) {
+		else if (textMsg.startsWith('tile:')) {
 			var command = this._parseServerCmd(textMsg);
 			var coords = this._twipsToCoords(new L.Point(command.x, command.y));
 			coords.z = command.zoom;


More information about the Libreoffice-commits mailing list