From: Ben Soares Date: Fri, 5 Jan 2024 17:28:36 +0000 (+0000) Subject: JAL-4368 Only set a colour scheme if --colour is given or it's not a JVP file X-Git-Tag: Release_2_11_4_0~54^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=69827911885f6e7ed824b5e6f2f802e0a23c25f0;p=jalview.git JAL-4368 Only set a colour scheme if --colour is given or it's not a JVP file --- diff --git a/src/jalview/bin/Commands.java b/src/jalview/bin/Commands.java index e01d40a..c848908 100644 --- a/src/jalview/bin/Commands.java +++ b/src/jalview/bin/Commands.java @@ -328,9 +328,17 @@ public class Commands } // colour alignment - String colour = avm.getFromSubValArgOrPref(av, Arg.COLOUR, sv, - null, "DEFAULT_COLOUR_PROT", ""); - this.colourAlignFrame(af, colour); + String colour = null; + if (avm.containsArg(Arg.COLOUR) + || !(format == FileFormat.Jalview)) + { + colour = avm.getFromSubValArgOrPref(av, Arg.COLOUR, sv, null, + "DEFAULT_COLOUR_PROT", null); + } + if (colour != null) + { + this.colourAlignFrame(af, colour); + } // Change alignment frame title String title = avm.getFromSubValArgOrPref(av, Arg.TITLE, sv, null,