JAL-845 fix bug in 3-to-1 scaling of protein from cDNA
[jalview.git] / 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);
       }
     }
   }