From a706a0f1f86af677c05c12713e791b78320003e6 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 11 Apr 2007 13:00:09 +0000 Subject: [PATCH] If hiddenColumns are null, then column is viisble --- src/jalview/datamodel/ColumnSelection.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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; } -- 1.7.10.2