Merge branch 'features/JAL-1641_JSON_' into develop
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Mon, 11 May 2015 09:44:16 +0000 (10:44 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Mon, 11 May 2015 09:44:16 +0000 (10:44 +0100)
src/jalview/io/JnetAnnotationMaker.java

index c5320f1..e944720 100755 (executable)
@@ -103,13 +103,13 @@ public class JnetAnnotationMaker
           for (int spos = 0; spos < width; spos++)
           {
             int sposw = (delMap == null) ? gapmap[spos]
-                    : delMap[gapmap[spos]];
+                    : gapmap[delMap[spos]];
             if (firstsol)
             {
               sol[sposw] = new Annotation(0f);
             }
             if (preds[i].getCharAt(spos) == 'B'
-                    && (sol[spos].value == 0f || sol[spos].value < amnt))
+                    && (sol[sposw].value == 0f || sol[sposw].value < amnt))
             {
               sol[sposw].value = amnt;
             }