From af28532d835bbef7d85bde74696a1ef751d7ff5c Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 19 Mar 2015 12:59:07 +0000 Subject: [PATCH] JAL-845 fix bug in 3-to-1 scaling of protein from cDNA --- src/jalview/gui/SplitFrame.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } } } -- 1.7.10.2