From b6401ce0eeaf81c8a5ee8051d109fb581cb42eab Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 23 Mar 2005 15:39:17 +0000 Subject: [PATCH] works even if col is 1 residue --- src/jalview/gui/ScalePanel.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/ScalePanel.java b/src/jalview/gui/ScalePanel.java index b349b5b..37cfcaf 100755 --- a/src/jalview/gui/ScalePanel.java +++ b/src/jalview/gui/ScalePanel.java @@ -150,7 +150,10 @@ public class ScalePanel extends JPanel gg.setColor(Color.black); - int scalestartx = startx - startx%space + space; + + int scalestartx = 0; + if(space>0) + scalestartx = startx - startx%space + space; //Fill the selected columns -- 1.7.10.2