From: James Procter Date: Sun, 14 Jan 2024 13:35:29 +0000 (+0000) Subject: JAL-4366 avoid corrupting map when no complete mapping available for chain to sequence X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=3fdc889794e3566af57628f0b6a308eb23886f96;p=jalview.git JAL-4366 avoid corrupting map when no complete mapping available for chain to sequence --- 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);