Merge branch 'bug/JAL-3212columnSelectionWithHidden' into develop bug/JAL-3212columnSelectionWithHidden
authorJim Procter <jprocter@issues.jalview.org>
Mon, 17 Jun 2019 12:50:29 +0000 (13:50 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 17 Jun 2019 12:50:29 +0000 (13:50 +0100)
1  2 
src/jalview/gui/ScalePanel.java

@@@ -108,15 -108,7 +108,8 @@@ public class ScalePanel extends JPane
    @Override
    public void mousePressed(MouseEvent evt)
    {
-     int x = (evt.getX() / av.getCharWidth()) + av.getRanges().getStartRes();
-     final int res;
-     if (av.hasHiddenColumns())
-     {
-       x = av.getAlignment().getHiddenColumns().visibleToAbsoluteColumn(x);
-     }
-     res = Math.min(x, av.getAlignment().getWidth() - 1);
+     final int res = av.getAbsoluteColumn(evt.getX());
 +
      min = res;
      max = res;