[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3-0' - loleaflet/src
Marco Cecchetti
marco.cecchetti at collabora.com
Tue Dec 19 10:26:59 UTC 2017
loleaflet/src/control/Control.ColumnHeader.js | 1 +
loleaflet/src/control/Control.RowHeader.js | 1 +
2 files changed, 2 insertions(+)
New commits:
commit 81c8935b468bae83568f3d7e5ee47962890d8bed
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
Date: Tue Dec 19 11:18:23 2017 +0100
loleaflet: calc: corner click cause console error when there is no group
Change-Id: I6d6de4b1126294bbbbdc464cd07441e887221163
Reviewed-on: https://gerrit.libreoffice.org/46779
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/loleaflet/src/control/Control.ColumnHeader.js b/loleaflet/src/control/Control.ColumnHeader.js
index 73bfc308..bc9d362d 100644
--- a/loleaflet/src/control/Control.ColumnHeader.js
+++ b/loleaflet/src/control/Control.ColumnHeader.js
@@ -516,6 +516,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 5e637527..e70a0904 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