From 0adf52a8d1a906eee2c5baad861106916add671b Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 10 May 2018 15:30:43 +0100 Subject: [PATCH] JAL-2629 revert to showing Profile parameter even if only 1 choice --- src/jalview/hmmer/HMMERParamStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/hmmer/HMMERParamStore.java b/src/jalview/hmmer/HMMERParamStore.java index 37ad435..fbab7a9 100644 --- a/src/jalview/hmmer/HMMERParamStore.java +++ b/src/jalview/hmmer/HMMERParamStore.java @@ -199,14 +199,14 @@ public final class HMMERParamStore implements ParamDatastoreI /** * Adds an argument representing the choice of HMM sequences (profiles) - * against which to perform align or search, provided more than one is found + * against which to perform align or search, provided at least one is found * * @param args */ protected void addChoiceOfHmm(List args) { List hmms = viewport.getAlignment().getHmmSequences(); - if (hmms.size() > 1) + if (!hmms.isEmpty()) { List options = new ArrayList<>(); for (SequenceI hmmSeq : hmms) -- 1.7.10.2