From: amwaterhouse Date: Wed, 23 Mar 2005 15:39:17 +0000 (+0000) Subject: works even if col is 1 residue X-Git-Tag: Release_2_0~515 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b6401ce0eeaf81c8a5ee8051d109fb581cb42eab;p=jalview.git works even if col is 1 residue --- 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