JAL-845 fix bug in 3-to-1 scaling of protein from cDNA
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 19 Mar 2015 12:59:07 +0000 (12:59 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 19 Mar 2015 12:59:07 +0000 (12:59 +0000)
src/jalview/gui/SplitFrame.java

index a29376e..6042efc 100644 (file)
@@ -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);
       }
     }
   }