JAL-2446 pseudo-random test of findOverlaps, bug fix for for add
[jalview.git] / src / jalview / datamodel / features / NCList.java
index 6a9f750..02f94b6 100644 (file)
@@ -235,11 +235,16 @@ public class NCList<T extends ContiguousI>
 
     /*
      * drops through to here if new range encloses all others
+     * or overlaps the last one
      */
     if (enclosing)
     {
       addEnclosingRange(entry, firstEnclosed, lastEnclosed);
     }
+    else
+    {
+      subranges.add(new NCNode<T>(entry));
+    }
   }
   
   /**