Merge branch 'bug/JAL-247autoIdWidthSeqMarker' into develop
[jalview.git] / src / jalview / gui / AlignmentPanel.java
index dfe0ffa..8191e05 100644 (file)
@@ -997,7 +997,7 @@ public class AlignmentPanel extends GAlignmentPanel implements
     List<SequenceI> selection = av.getSelectionGroup() == null ? null
             : av.getSelectionGroup().getSequences(null);
     idCanvas.drawIds((Graphics2D) idGraphics, av, startSeq, endSeq - 1,
-            selection);
+            selection, idWidth);
 
     idGraphics.setFont(av.getFont());
     idGraphics.translate(0, -scaleHeight);
@@ -1072,7 +1072,7 @@ public class AlignmentPanel extends GAlignmentPanel implements
     int cHeight = av.getAlignment().getHeight() * av.getCharHeight() + hgap
             + annotationHeight;
 
-    int idWidth = getVisibleIdWidth(false);
+    final int idWidth = getVisibleIdWidth(false);
 
     int maxwidth = av.getAlignment().getVisibleWidth();
 
@@ -1101,7 +1101,7 @@ public class AlignmentPanel extends GAlignmentPanel implements
      * draw sequence ids and annotation labels (if shown)
      */
     IdCanvas idCanvas = getIdPanel().getIdCanvas();
-    idCanvas.drawIdsWrapped((Graphics2D) g, av, 0, totalHeight);
+    idCanvas.drawIdsWrapped((Graphics2D) g, av, 0, totalHeight, idWidth);
 
     g.translate(idWidth, 0);