From 3fdc889794e3566af57628f0b6a308eb23886f96 Mon Sep 17 00:00:00 2001 From: James Procter Date: Sun, 14 Jan 2024 13:35:29 +0000 Subject: [PATCH] JAL-4366 avoid corrupting map when no complete mapping available for chain to sequence --- src/jalview/structures/models/AAStructureBindingModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/structures/models/AAStructureBindingModel.java b/src/jalview/structures/models/AAStructureBindingModel.java index dc3cc1e..4f29096 100644 --- a/src/jalview/structures/models/AAStructureBindingModel.java +++ b/src/jalview/structures/models/AAStructureBindingModel.java @@ -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); -- 1.7.10.2