From 775c5ac0371ef0cfc3c4f34a2719903fa228e9e0 Mon Sep 17 00:00:00 2001 From: "cmzmasek@gmail.com" Date: Thu, 3 Mar 2011 19:19:03 +0000 Subject: [PATCH] in progress... --- forester/java/src/org/forester/util/ForesterUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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( "" ); -- 1.7.10.2