From 953bc479e49ad87d8dc8e92a13fe14562c31a1fe Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 10 May 2018 13:33:25 +0100 Subject: [PATCH] JAL-591 show choice list with a single option --- src/jalview/gui/OptsAndParamsPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/gui/OptsAndParamsPage.java b/src/jalview/gui/OptsAndParamsPage.java index 39b8ed5..5ef7169 100644 --- a/src/jalview/gui/OptsAndParamsPage.java +++ b/src/jalview/gui/OptsAndParamsPage.java @@ -386,7 +386,7 @@ public class OptsAndParamsPage List possibleValues = parameter.getPossibleValues(); isChoiceParameter = possibleValues != null - && possibleValues.size() > 1; + && !possibleValues.isEmpty(); if (compact) { -- 1.7.10.2