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

Mihai Varga mihai.varga at collabora.com
Tue Jul 7 08:15:20 PDT 2015


 loleaflet/src/layer/tile/TileLayer.js |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 5a61cbce46fa4df56409255e28c8f120c0e44488
Author: Mihai Varga <mihai.varga at collabora.com>
Date:   Tue Jul 7 18:13:35 2015 +0300

    loleaflet: get the rest of the message for textSelectionContent
    
    Because initially the message is split by the first new line
    character

diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 1f1c759..37bbe44 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -480,6 +480,7 @@ L.TileLayer = L.GridLayer.extend({
 			this._onUpdateTextSelection();
 		}
 		else if (textMsg.startsWith('textselectioncontent:')) {
+			textMsg += String.fromCharCode.apply(null, bytes.subarray(index + 1));
 			this._selectionTextContent = textMsg.substr(22);
 		}
 		else if (textMsg.startsWith('setpart:')) {


More information about the Libreoffice-commits mailing list