[Libreoffice-commits] online.git: loleaflet/src
Marco Cecchetti
marco.cecchetti at collabora.com
Tue Dec 19 11:05:22 UTC 2017
loleaflet/src/control/Control.ColumnHeader.js | 1 +
loleaflet/src/control/Control.RowHeader.js | 1 +
2 files changed, 2 insertions(+)
New commits:
commit 5b08091a5e31bb61beb0882df3aa4ad100405766
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
Date: Mon Dec 18 23:13:24 2017 +0100
loleaflet: calc: corner click cause console error when there is no group
Change-Id: I6d6de4b1126294bbbbdc464cd07441e887221163
Reviewed-on: https://gerrit.libreoffice.org/46778
Reviewed-by: Marco Cecchetti <mrcekets at gmail.com>
Tested-by: Marco Cecchetti <mrcekets at gmail.com>
diff --git a/loleaflet/src/control/Control.ColumnHeader.js b/loleaflet/src/control/Control.ColumnHeader.js
index d2282a42..741ef825 100644
--- a/loleaflet/src/control/Control.ColumnHeader.js
+++ b/loleaflet/src/control/Control.ColumnHeader.js
@@ -512,6 +512,7 @@ L.Control.ColumnHeader = L.Control.Header.extend({
if (pos.x <= rowOutlineWidth) {
// empty rectangle on the left select all
this._map.sendUnoCommand('.uno:SelectAll');
+ return;
}
var level = this._getGroupLevel(pos.y);
diff --git a/loleaflet/src/control/Control.RowHeader.js b/loleaflet/src/control/Control.RowHeader.js
index 85596138..48e982ab 100644
--- a/loleaflet/src/control/Control.RowHeader.js
+++ b/loleaflet/src/control/Control.RowHeader.js
@@ -471,6 +471,7 @@ L.Control.RowHeader = L.Control.Header.extend({
if (pos.x > this.getOutlineWidth()) {
// empty rectangle on the right select all
this._map.sendUnoCommand('.uno:SelectAll');
+ return;
}
var level = this._getGroupLevel(pos.x);
More information about the Libreoffice-commits
mailing list