JAL-4366 avoid corrupting map when no complete mapping available for chain to sequence
authorJames Procter <j.procter@dundee.ac.uk>
Sun, 14 Jan 2024 13:35:29 +0000 (13:35 +0000)
committerJames Procter <j.procter@dundee.ac.uk>
Sun, 14 Jan 2024 13:35:29 +0000 (13:35 +0000)
src/jalview/structures/models/AAStructureBindingModel.java

index dc3cc1e..4f29096 100644 (file)
@@ -1428,7 +1428,7 @@ public abstract class AAStructureBindingModel
               lastChain = chain;
             }
             // final colour range
-            if (lastColour != null)
+            if (lastColour != null && startPos!=-1)
             {
               addAtomSpecRange(colourMap, lastColour, modelId, startPos,
                       lastPos, lastChain);