JAL-3673 make sure font metrics are updated if dealing with reference sequence font !
authorJim Procter <jprocter@issues.jalview.org>
Fri, 26 Jun 2020 16:24:16 +0000 (17:24 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 26 Jun 2020 16:24:22 +0000 (17:24 +0100)
src/jalview/gui/IdCanvas.java

index 10c0787..1a8e79f 100755 (executable)
@@ -324,6 +324,7 @@ public class IdCanvas extends JPanel implements ViewportListenerI
       if (hasHiddenRows || alignViewport.isDisplayReferenceSeq())
       {
         g.setFont(getHiddenFont(sequence, alignViewport));
+        fm = g.getFontMetrics();
       }
 
       // Selected sequence colours