if shift down bug fixed
authoramwaterhouse <Andrew Waterhouse>
Wed, 15 Feb 2006 15:23:26 +0000 (15:23 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 15 Feb 2006 15:23:26 +0000 (15:23 +0000)
src/jalview/gui/UserDefinedColours.java

index 089c8a9..556ae41 100755 (executable)
@@ -175,7 +175,7 @@ public class UserDefinedColours extends GUserDefinedColours
       if(e.isShiftDown())\r
       {\r
         JButton start, end = (JButton) e.getSource();\r
-        if(selectedButtons.size()>1)\r
+        if(selectedButtons.size()>0)\r
           start = (JButton)selectedButtons.elementAt(selectedButtons.size()-1);\r
         else\r
           start = (JButton) e.getSource();\r