From 2fa01dd888f9c0a8e22360fd50015f237184d209 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 a925227..541c253 100755 --- a/src/jalview/gui/IdCanvas.java +++ b/src/jalview/gui/IdCanvas.java @@ -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 -- 1.7.10.2