Skip to content
Snippets Groups Projects
Commit 81c8935b authored by Marco Cecchetti's avatar Marco Cecchetti Committed by Jan Holesovsky
Browse files

loleaflet: calc: corner click cause console error when there is no group

Change-Id: I6d6de4b1126294bbbbdc464cd07441e887221163
Reviewed-on: https://gerrit.libreoffice.org/46779


Reviewed-by: default avatarJan Holesovsky <kendy@collabora.com>
Tested-by: default avatarJan Holesovsky <kendy@collabora.com>
parent f1fe2fe6
No related branches found
Tags CODE-3.0.0
No related merge requests found
......@@ -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);
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment