From: Ben Soares Date: Thu, 24 Aug 2023 16:54:37 +0000 (+0100) Subject: JAL-4250 Fix bug in vector rendition where more than one secondary structure loses... X-Git-Tag: Release_2_11_4_0~206^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c209e4de401c4c8ff1b566b2ae8158a116ee9f72;p=jalview.git JAL-4250 Fix bug in vector rendition where more than one secondary structure loses the glyphline. --- diff --git a/src/jalview/renderer/AnnotationRenderer.java b/src/jalview/renderer/AnnotationRenderer.java index 2380ac9..d943d39 100644 --- a/src/jalview/renderer/AnnotationRenderer.java +++ b/src/jalview/renderer/AnnotationRenderer.java @@ -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) {