[Libreoffice-commits] online.git: loleaflet/src
Jan Holesovsky
kendy at collabora.com
Fri Jun 5 07:03:30 PDT 2015
loleaflet/src/layer/tile/TileLayer.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 6df02b89d2d5e9fd6efc18a9a8a028fa676e4d58
Author: Jan Holesovsky <kendy at collabora.com>
Date: Fri Jun 5 16:02:44 2015 +0200
Enable editing in master again.
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 890e209..d636ce6 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -139,12 +139,12 @@ L.TileLayer = L.GridLayer.extend({
textMsg = String.fromCharCode.apply(null, bytes.subarray(0, index + 1));
}
- /*if (textMsg.startsWith('cursorvisible')) {
+ if (textMsg.startsWith('cursorvisible:')) {
var command = textMsg.match('cursorvisible: true');
this._cursorVisible = command == undefined ? false : true;
this._onUpdateCursor();
}
- else if (textMsg.startsWith('invalidatecursor')) {
+ else if (textMsg.startsWith('invalidatecursor:')) {
strTwips = textMsg.match(/\d+/g);
var topLeftTwips = new L.Point(parseInt(strTwips[0]), parseInt(strTwips[1]));
var offset = new L.Point(parseInt(strTwips[2]), parseInt(strTwips[3]));
@@ -154,7 +154,7 @@ L.TileLayer = L.GridLayer.extend({
this._twipsToLatLng(bottomRightTwips));
this._onUpdateCursor();
}
- else if (textMsg.startsWith('invalidatetiles') && !textMsg.match('EMPTY')) {
+ else if (textMsg.startsWith('invalidatetiles:') && !textMsg.match('EMPTY')) {
strTwips = textMsg.match(/\d+/g);
var topLeftTwips = new L.Point(parseInt(strTwips[0]), parseInt(strTwips[1]));
var offset = new L.Point(parseInt(strTwips[2]), parseInt(strTwips[3]));
@@ -179,7 +179,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;
More information about the Libreoffice-commits
mailing list