From dd9c2cc48f2bd2781123948f52aad1727f993441 Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 4 Aug 2010 12:09:56 +0000 Subject: [PATCH] ensure that both null and undefined colourscheme names resolve to 'None' when the applied colour scheme is reflected in the gui --- src/jalview/jbgui/GAlignFrame.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/jalview/jbgui/GAlignFrame.java b/src/jalview/jbgui/GAlignFrame.java index 8342609..f10e234 100755 --- a/src/jalview/jbgui/GAlignFrame.java +++ b/src/jalview/jbgui/GAlignFrame.java @@ -430,9 +430,6 @@ public class GAlignFrame extends JInternalFrame switch (index) { - case ColourSchemeProperty.NONE: - noColourmenuItem.setSelected(true); - break; case ColourSchemeProperty.CLUSTAL: clustalColour.setSelected(true); @@ -491,6 +488,11 @@ public class GAlignFrame extends JInternalFrame userDefinedColour.setSelected(true); break; + case ColourSchemeProperty.NONE: + default: + noColourmenuItem.setSelected(true); + break; + } } -- 1.7.10.2