From: kiramt Date: Thu, 17 Aug 2017 08:02:34 +0000 (+0100) Subject: JAL-2665 Correct position of selection switching from wrap to normal X-Git-Tag: Release_2_10_3b1~140^2~12 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=3e1ab9b2afc225abc8263c8a60ea582850b3bb36;p=jalview.git JAL-2665 Correct position of selection switching from wrap to normal --- diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 9bd38c5..0b0166b 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -1053,6 +1053,12 @@ public class SeqCanvas extends JComponent implements ViewportListenerI return null; } + if (!av.getWrapAlignment()) + { + LABEL_EAST = 0; + LABEL_WEST = 0; + } + // set up drawing colour Graphics2D g = (Graphics2D) selectionImage.getGraphics(); g.translate(LABEL_WEST, 0); @@ -1119,6 +1125,7 @@ public class SeqCanvas extends JComponent implements ViewportListenerI } } g.translate(-LABEL_WEST, 0); + g.dispose(); return selectionImage; }