diff options
| author | Dirk Fauth | 2023-03-08 12:49:22 +0000 |
|---|---|---|
| committer | Dirk Fauth | 2023-03-08 12:49:22 +0000 |
| commit | 17c34272f67140a22d81030f18366f7d176e2b37 (patch) | |
| tree | bd61f9a93a99ad2d97ee5070aac4f54771eb2bd2 | |
| parent | 3671028bed15b0cd7e671c28dd906a1f7264d11a (diff) | |
| download | org.eclipse.nebula.widgets.nattable-17c34272f67140a22d81030f18366f7d176e2b37.tar.gz org.eclipse.nebula.widgets.nattable-17c34272f67140a22d81030f18366f7d176e2b37.tar.xz org.eclipse.nebula.widgets.nattable-17c34272f67140a22d81030f18366f7d176e2b37.zip | |
Bug 581629 - [GroupBy] BusyIndicator not shown for complete structure
update
Even if the BusyIndicator is shown, it is possible to right click on the
GroupByHeader. Doing this on an element that is removed with the
previous action could lead to an exception, which is avoided with this
change.
Signed-off-by: Dirk Fauth <dirk.fauth@googlemail.com>
Change-Id: I82159ab9910ea20d7efb1297bf9fe37107361ce1
| -rw-r--r-- | org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/groupBy/GroupByHeaderPainter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/groupBy/GroupByHeaderPainter.java b/org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/groupBy/GroupByHeaderPainter.java index 6b59559e..44821501 100644 --- a/org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/groupBy/GroupByHeaderPainter.java +++ b/org.eclipse.nebula.widgets.nattable.extension.glazedlists/src/org/eclipse/nebula/widgets/nattable/extension/glazedlists/groupBy/GroupByHeaderPainter.java @@ -214,7 +214,7 @@ public class GroupByHeaderPainter extends AbstractCellPainter { public int getGroupByColumnIndexAtXY(int x, int y) { for (int i = 0; i < this.groupByCellBounds.size(); i++) { Rectangle bounds = this.groupByCellBounds.get(i); - if (bounds.contains(x, y)) { + if (bounds.contains(x, y) && i < this.groupByModel.getGroupByColumnIndexes().size()) { return this.groupByModel.getGroupByColumnIndexes().get(i); } } |
