works even if col is 1 residue
authoramwaterhouse <Andrew Waterhouse>
Wed, 23 Mar 2005 15:39:17 +0000 (15:39 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 23 Mar 2005 15:39:17 +0000 (15:39 +0000)
src/jalview/gui/ScalePanel.java

index b349b5b..37cfcaf 100755 (executable)
@@ -150,7 +150,10 @@ public class ScalePanel extends JPanel
 \r
     gg.setColor(Color.black);\r
 \r
-    int scalestartx = startx - startx%space + space;\r
+\r
+    int scalestartx = 0;\r
+    if(space>0)\r
+      scalestartx = startx - startx%space + space;\r
 \r
 \r
     //Fill the selected columns\r