Check on vscrollMax values
[jalview.git] / src / jalview / appletgui / AnnotationPanel.java
index 82d2a1e..d4024ba 100755 (executable)
@@ -1,6 +1,6 @@
 /*\r
  * Jalview - A Sequence Alignment Editor and Viewer\r
- * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+ * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
  *\r
  * This program is free software; you can redistribute it and/or\r
  * modify it under the terms of the GNU General Public License\r
@@ -558,6 +558,7 @@ public class AnnotationPanel
 \r
               default:\r
                 g.setColor(Color.gray);\r
+                if(!av.wrapAlignment || endRes==av.endRes)\r
                 g.fillRect(lastSSX, y + 6 + iconOffset,\r
                            (x*av.charWidth) - lastSSX, 2);\r
 \r