From: amwaterhouse Date: Wed, 11 Apr 2007 13:00:09 +0000 (+0000) Subject: If hiddenColumns are null, then column is viisble X-Git-Tag: Release_2_3~261 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a706a0f1f86af677c05c12713e791b78320003e6;p=jalview.git If hiddenColumns are null, then column is viisble --- diff --git a/src/jalview/datamodel/ColumnSelection.java b/src/jalview/datamodel/ColumnSelection.java index 46c4c87..4904495 100644 --- a/src/jalview/datamodel/ColumnSelection.java +++ b/src/jalview/datamodel/ColumnSelection.java @@ -727,14 +727,16 @@ public class ColumnSelection public boolean isVisible(int column) { - for (int i = 0; i < hiddenColumns.size(); i++) - { - int[] region = (int[]) hiddenColumns.elementAt(i); - if (column >= region[0] && column <= region[1]) + if (hiddenColumns != null) + for (int i = 0; i < hiddenColumns.size(); i++) { - return false; + int[] region = (int[]) hiddenColumns.elementAt(i); + if (column >= region[0] && column <= region[1]) + { + return false; + } } - } + return true; }