Make 24 colours to be sure
[jalview.git] / src / jalview / schemes / ColourSchemeProperty.java
index 012c3a9..b586a0a 100755 (executable)
@@ -139,10 +139,6 @@ public class ColourSchemeProperty
      */\r
     public static String getColourName(ColourSchemeI cs)\r
     {\r
-        if (cs instanceof ConservationColourScheme)\r
-        {\r
-            cs = ((ConservationColourScheme) cs).cs;\r
-        }\r
 \r
         int index = 12;\r
 \r
@@ -379,8 +375,10 @@ public class ColourSchemeProperty
             break;\r
 \r
         case USER_DEFINED:\r
-            cs = new UserColourScheme(new Color[0]);\r
-\r
+          Color[] col = new Color[24];\r
+          for (int i = 0; i < 24; i++)\r
+            col[i] = Color.white;\r
+          cs = new UserColourScheme(col);\r
             break;\r
 \r
         default:\r