X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=plugins%2Fnet.mograsim.plugin.core%2Fsrc%2Fnet%2Fmograsim%2Fplugin%2Ftables%2Fmi%2FRowHighlighter.java;h=3b1aa0384204e234060eb2d0d35d164ba6247f4b;hb=7d64b694e4d70335e957f80c3b46c5b1c3a9c30a;hp=e7435a20a46dbbf5ad3aafc794d513dbd1b7dc31;hpb=1151a74c8e2ca75e70ba458ebf59ba364b36a23f;p=Mograsim.git diff --git a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/mi/RowHighlighter.java b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/mi/RowHighlighter.java index e7435a20..3b1aa038 100644 --- a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/mi/RowHighlighter.java +++ b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/mi/RowHighlighter.java @@ -35,7 +35,7 @@ public class RowHighlighter cProv.highlight(row); if (row != -1) { - table.showItem(table.getItem(Math.min(table.getItemCount(), row + 2))); + table.showItem(table.getItem(Math.min(table.getItemCount() - 1, row + 2))); table.showItem(table.getItem(row)); Optional.ofNullable(table.getItem(row).getData()).ifPresent(d -> viewer.update(d, null)); }