From: Jim Procter Date: Mon, 4 Apr 2016 15:12:48 +0000 (+0100) Subject: JAL-2001 catch -ve column values X-Git-Tag: Release_2_10_0~270^2^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=efa007087e99f7c7552276154b733fd184c55f74;p=jalview.git JAL-2001 catch -ve column values (fixes failing test jalview.util.MappingUtilsTest.testMapColumnSelection) --- diff --git a/src/jalview/datamodel/ColumnSelection.java b/src/jalview/datamodel/ColumnSelection.java index cfe4685..c891485 100644 --- a/src/jalview/datamodel/ColumnSelection.java +++ b/src/jalview/datamodel/ColumnSelection.java @@ -263,7 +263,7 @@ public class ColumnSelection */ public boolean contains(int col) { - return selected.isSelected(col); + return (col > -1) ? selected.isSelected(col) : false; } /**