From: Jim Procter Date: Mon, 17 Jun 2019 12:50:29 +0000 (+0100) Subject: Merge branch 'bug/JAL-3212columnSelectionWithHidden' into develop X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=5bad8435fd8ef2481b42814d876c12d4f52f0620;p=jalview.git Merge branch 'bug/JAL-3212columnSelectionWithHidden' into develop --- 5bad8435fd8ef2481b42814d876c12d4f52f0620 diff --cc src/jalview/gui/ScalePanel.java index 8f49c6c,714a5aa..833cd54 --- a/src/jalview/gui/ScalePanel.java +++ b/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;