From: <gk...@us...> - 2012-04-24 01:14:41
|
Revision: 25265 http://gmod.svn.sourceforge.net/gmod/?rev=25265&view=rev Author: gk_fan Date: 2012-04-24 01:14:29 +0000 (Tue, 24 Apr 2012) Log Message: ----------- Fixed bug that caused crashing when adding transcript to a gene when EDE was open. Modified Paths: -------------- apollo/trunk/src/java/apollo/gui/detailviewers/exonviewer/BaseFineEditor.java Modified: apollo/trunk/src/java/apollo/gui/detailviewers/exonviewer/BaseFineEditor.java =================================================================== --- apollo/trunk/src/java/apollo/gui/detailviewers/exonviewer/BaseFineEditor.java 2012-04-06 18:05:19 UTC (rev 25264) +++ apollo/trunk/src/java/apollo/gui/detailviewers/exonviewer/BaseFineEditor.java 2012-04-24 01:14:29 UTC (rev 25265) @@ -182,8 +182,8 @@ AnnotatedFeatureI gene = evt.getChangedAnnot(); int trans_count = gene.size(); for (int i = 0; i < trans_count; ++i) { - Transcript t = (Transcript) gene.getFeatureAt (i); if (evt.isUndo()) { + Transcript t = (Transcript) gene.getFeatureAt (i); //System.out.printf("Attaching %s(%d)\n", t, t.hashCode()); editorPanel.attachAnnot(t); if (currentAnnot != null && t.getName().equals(currentAnnot.getName())) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |