From: jprocter Date: Wed, 4 Aug 2010 12:09:56 +0000 (+0000) Subject: ensure that both null and undefined colourscheme names resolve to 'None' when the... X-Git-Tag: Release_2_6~138 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=dd9c2cc48f2bd2781123948f52aad1727f993441;p=jalview.git ensure that both null and undefined colourscheme names resolve to 'None' when the applied colour scheme is reflected in the gui --- 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; + } }