JAL-4250 Fix bug in vector rendition where more than one secondary structure loses... improvement/JAL-4250_secondary_structure_annotation_antialias
authorBen Soares <b.soares@dundee.ac.uk>
Thu, 24 Aug 2023 16:54:37 +0000 (17:54 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Thu, 24 Aug 2023 16:54:37 +0000 (17:54 +0100)
src/jalview/renderer/AnnotationRenderer.java

index 2380ac9..d943d39 100644 (file)
@@ -472,8 +472,6 @@ public class AnnotationRenderer
       this.setVectorRendition(true);
     }
     Graphics2D g2d = (Graphics2D) g;
-    // flag used for vector rendition
-    this.glyphLineDrawn = false;
 
     long stime = System.currentTimeMillis();
     boolean usedFaded = false;
@@ -624,6 +622,9 @@ public class AnnotationRenderer
         // first pass sets up state for drawing continuation from left-hand
         // column
         // of startRes
+
+        // flag used for vector rendition
+        this.glyphLineDrawn = false;
         x = (startRes == 0) ? 0 : -1;
         while (x < endRes - startRes)
         {