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

New commits:
commit 11f2c1446a6208976eb92e2b8ab2ce256140de54
Author: Mihai Varga <mihai.va...@collabora.com>
Date:   Wed Nov 18 19:50:25 2015 +0200

    loleaflet: don't show a dialog when there is no selection content

diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index e835f64..94f32bb 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -900,10 +900,7 @@ L.TileLayer = L.GridLayer.extend({
        _onCopy: function (e) {
                e = e.originalEvent;
                e.preventDefault();
-               if (!this._selectionTextContent) {
-                       this._map.fire('error', {msg: 'Oops, no content 
available yet'});
-               }
-               else {
+               if (this._selectionTextContent) {
                        e.clipboardData.setData('text/plain', 
this._selectionTextContent);
                }
        },
commit e118574fa8847e251cdc84cc8313bc62a6cf6dda
Author: Mihai Varga <mihai.va...@collabora.com>
Date:   Wed Nov 18 19:45:11 2015 +0200

    loleaflet: ccu#1349 handle copying cell content in Calc

diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index 24b0bb2..e835f64 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -310,6 +310,7 @@ L.TileLayer = L.GridLayer.extend({
 
        _onCellFormulaMsg: function (textMsg) {
                var formula = textMsg.substring(13);
+               this._selectionTextContent = formula;
                this._map.fire('cellformula', {formula: formula});
        },
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to