From: gmungoc Date: Thu, 19 Mar 2015 12:59:07 +0000 (+0000) Subject: JAL-845 fix bug in 3-to-1 scaling of protein from cDNA X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=af28532d835bbef7d85bde74696a1ef751d7ff5c;p=jalview.git JAL-845 fix bug in 3-to-1 scaling of protein from cDNA --- diff --git a/src/jalview/gui/SplitFrame.java b/src/jalview/gui/SplitFrame.java index a29376e..6042efc 100644 --- a/src/jalview/gui/SplitFrame.java +++ b/src/jalview/gui/SplitFrame.java @@ -125,8 +125,9 @@ public class SplitFrame extends GSplitFrame implements SplitContainerI if (protein != null && cdna != null) { ViewStyleI vs = cdna.getViewStyle(); - vs.setCharWidth(3 * vs.getCharWidth()); - protein.setViewStyle(vs); + ViewStyleI vs2 = protein.getViewStyle(); + vs2.setCharWidth(3 * vs.getCharWidth()); + protein.setViewStyle(vs2); } } }