From: Jim Procter Date: Fri, 26 Jun 2020 16:24:16 +0000 (+0100) Subject: JAL-3673 make sure font metrics are updated if dealing with reference sequence font ! X-Git-Tag: Release_2_11_1_1~13^2~20 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2fa01dd888f9c0a8e22360fd50015f237184d209;p=jalview.git JAL-3673 make sure font metrics are updated if dealing with reference sequence font ! --- 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