From e7623d0a250b5d4908c45d50f52a78be4e339ce7 Mon Sep 17 00:00:00 2001 From: James Procter Date: Fri, 10 Feb 2023 16:26:37 +0000 Subject: [PATCH] =?utf8?q?Fix=20for=20JAL-4126=20-=20don=E2=80=99t=20automat?= =?utf8?q?ically=20create=20a=20threshold=20line=20when=20no=20threshold=20l?= =?utf8?q?ine=20is=20needed=20when=20reconstructing=20the=20annotation=20col?= =?utf8?q?our=20scheme=20from=20a=20project=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/project/Jalview2XML.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jalview/project/Jalview2XML.java b/src/jalview/project/Jalview2XML.java index c8f9be6..c900c06 100644 --- a/src/jalview/project/Jalview2XML.java +++ b/src/jalview/project/Jalview2XML.java @@ -5094,7 +5094,10 @@ public class Jalview2XML + annotationId); return null; } - if (matchedAnnotation.getThreshold() == null) + // belt-and-braces create a threshold line if the + // colourscheme needs one but the matchedAnnotation doesn't have one + if (safeInt(viewAnnColour.getAboveThreshold()) != 0 + && matchedAnnotation.getThreshold() == null) { matchedAnnotation.setThreshold( new GraphLine(safeFloat(viewAnnColour.getThreshold()), -- 1.7.10.2