}
ColumnSelection cs = av.getColumnSelection();
HiddenColumns hc = av.getAlignment().getHiddenColumns();
- int offp = (rseq != null) ? rseq.findIndex(rseq.getStart() - 1 + colm)
+ int offp = (rseq != null) ? rseq.findIndex(rseq.getStart() + colm)
: colm;
- if (!av.hasHiddenColumns() || hc.isVisible(offp))
+ if (!av.hasHiddenColumns())
{
- return cs.contains(offp);
+ return cs.contains(offp-1);
+ }
+ if (hc.isVisible(offp-1))
+ {
+ return cs.contains(offp-1);
+// return cs.contains(hc.absoluteToVisibleColumn(offp));
}
return false;
}