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>
Tue, 11 Aug 2020 14:05:56 +0000 (15:05 +0100)
src/jalview/gui/IdCanvas.java

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