From efa007087e99f7c7552276154b733fd184c55f74 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 4 Apr 2016 16:12:48 +0100 Subject: [PATCH] JAL-2001 catch -ve column values (fixes failing test jalview.util.MappingUtilsTest.testMapColumnSelection) --- src/jalview/datamodel/ColumnSelection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } /** -- 1.7.10.2