[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - loleaflet/src
Pranav Kant
pranavk at collabora.co.uk
Wed Apr 5 11:49:34 UTC 2017
loleaflet/src/layer/tile/TileLayer.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 51be04b9b3644a943b85e4d6aee005c94bec75b6
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Wed Apr 5 17:17:32 2017 +0530
Fix cannot paste into the document
Change-Id: I14eac943ee1b6ef83e2ea1707e34218bd85b4b13
(cherry picked from commit a411e5b4c2dfe6d37f525fc43e04268bd74f7759)
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index a5ea4bcd..dd2331d6 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -1741,7 +1741,7 @@ L.TileLayer = L.GridLayer.extend({
e = e.originalEvent;
e.preventDefault();
var pasteString = L.Compatibility.clipboardGet(e);
- if (pasteString === 'false' || !!pasteString || pasteString === this._selectionTextHash) {
+ if (pasteString === 'false' || !pasteString || pasteString === this._selectionTextHash) {
// If there is nothing to paste in clipboard, no harm in
// issuing a .uno:Paste in case there is something internally copied in the document
// or if the content of the clipboard did not change, we surely must do a rich paste
More information about the Libreoffice-commits
mailing list