fix for JAL-2991 - we could do better :/ bug/JAL-2991_exporttosvgwrapview
authorJim Procter <jprocter@issues.jalview.org>
Wed, 23 May 2018 15:19:56 +0000 (16:19 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 23 May 2018 15:19:56 +0000 (16:19 +0100)
src/jalview/gui/SeqCanvas.java

index 2d8eb7d..8f315bd 100755 (executable)
@@ -652,6 +652,11 @@ public class SeqCanvas extends JComponent implements ViewportListenerI
     ViewportRanges ranges = av.getRanges();
     ranges.setViewportStartAndWidth(startColumn, wrappedWidthInResidues);
 
+    // we need to call this again to make sure the startColumn +
+    // wrappedWidthInResidues values are used to calculate wrappedVisibleWidths
+    // correctly.
+    calculateWrappedGeometry(canvasWidth, canvasHeight);
+
     /*
      * draw one width at a time (including any scales or annotation shown),
      * until we have run out of either alignment or vertical space available