From: gmungoc Date: Mon, 4 Jul 2016 14:19:43 +0000 (+0100) Subject: JAL-2110 defensive check in code X-Git-Tag: Release_2_10_0~140^2~5^2~26 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=989fb9284f5e443886fcaa9cf4ca495c75c76f71;p=jalview.git JAL-2110 defensive check in code --- diff --git a/src/jalview/datamodel/AlignedCodonFrame.java b/src/jalview/datamodel/AlignedCodonFrame.java index 18aaecf..bb705b6 100644 --- a/src/jalview/datamodel/AlignedCodonFrame.java +++ b/src/jalview/datamodel/AlignedCodonFrame.java @@ -472,7 +472,8 @@ public class AlignedCodonFrame for (SequenceToSequenceMapping ssm : mappings) { - if (ssm.mapping.to == protein) + if (ssm.mapping.to == protein + && ssm.mapping.getMap().getFromRatio() == 3) { ml = ssm.mapping.map; dnaSeq = ssm.fromSeq;