From: gmungoc Date: Thu, 10 May 2018 12:33:25 +0000 (+0100) Subject: JAL-591 show choice list with a single option X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=953bc479e49ad87d8dc8e92a13fe14562c31a1fe;p=jalview.git JAL-591 show choice list with a single option --- 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) {