From d53294db69b6bb2fe39415b28abb98092234ce67 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 26 Jun 2020 17:24:16 +0100 Subject: [PATCH] JAL-3673 make sure font metrics are updated if dealing with reference sequence font ! --- src/jalview/gui/IdCanvas.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jalview/gui/IdCanvas.java b/src/jalview/gui/IdCanvas.java index 10c0787..1a8e79f 100755 --- a/src/jalview/gui/IdCanvas.java +++ b/src/jalview/gui/IdCanvas.java @@ -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 -- 1.7.10.2