From: cmzmasek@gmail.com Date: Thu, 3 Mar 2011 19:19:03 +0000 (+0000) Subject: in progress... X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=775c5ac0371ef0cfc3c4f34a2719903fa228e9e0;p=jalview.git in progress... --- diff --git a/forester/java/src/org/forester/util/ForesterUtil.java b/forester/java/src/org/forester/util/ForesterUtil.java index 957480b..9aba8cc 100644 --- a/forester/java/src/org/forester/util/ForesterUtil.java +++ b/forester/java/src/org/forester/util/ForesterUtil.java @@ -1182,7 +1182,7 @@ public final class ForesterUtil { String id = name; final int i = name.indexOf( '_' ); if ( i > 0 ) { - id = name.substring( i, name.length() ); + id = name.substring( 0, i ); } else { n.setName( "" ); @@ -1198,7 +1198,7 @@ public final class ForesterUtil { String id = name; final int i = name.indexOf( '_' ); if ( i > 0 ) { - id = name.substring( 0, i ); + id = name.substring( i + 1, name.length() ); } else { n.setName( "" );