From 6fd0082779552e1b804a2712f56a210274535799 Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 14 Apr 2010 14:39:08 +0000 Subject: [PATCH] remove debug messages. fix order/reverse order issue for sortByFeature --- src/jalview/gui/FeatureSettings.java | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/jalview/gui/FeatureSettings.java b/src/jalview/gui/FeatureSettings.java index 5598af2..def0a09 100755 --- a/src/jalview/gui/FeatureSettings.java +++ b/src/jalview/gui/FeatureSettings.java @@ -1040,18 +1040,29 @@ public class FeatureSettings extends JPanel gps = getDisplayedFeatureGroups(); if (typ != null) { + ArrayList types = new ArrayList(); for (int i = 0; i < typ.length; i++) { - System.err.println("Sorting on Types:" + typ[i]); + if (typ[i]!=null) + { + types.add(typ[i]); + } + typ = new String[types.size()]; + types.toArray(typ); } } if (gps != null) { + ArrayList grps = new ArrayList(); for (int i = 0; i < gps.length; i++) { - System.err.println("Sorting on groups:" + gps[i]); + if (gps[i]!=null) { + grps.add(gps[i]); + } } + gps = new String[grps.size()]; + grps.toArray(gps); } AlignmentPanel alignPanel = af.alignPanel; AlignmentI al = alignPanel.av.getAlignment(); @@ -1474,7 +1485,7 @@ public class FeatureSettings extends JPanel { Color newColor = gcol.getMaxColor(); comp.setBackground(newColor); - System.err.println("Width is " + w / 2); + // System.err.println("Width is " + w / 2); Icon ficon = new FeatureIcon(gcol, comp.getBackground(), w / 2, h); comp.setIcon(ficon); // tt+="RGB value: Max (" + newColor.getRed() + ", " -- 1.7.10.2