JAL-4253 drop the bottom line so it lines up with the vertical of group border.
authorJames Procter <j.procter@dundee.ac.uk>
Mon, 28 Aug 2023 11:10:37 +0000 (12:10 +0100)
committerJames Procter <j.procter@dundee.ac.uk>
Mon, 28 Aug 2023 11:17:41 +0000 (12:17 +0100)
src/jalview/gui/SeqCanvas.java

index d15cdcf..62e48d2 100755 (executable)
@@ -1375,8 +1375,8 @@ public class SeqCanvas extends JPanel implements ViewportListenerI
         }
         else if (inGroup)
         {
-          drawVerticals(g, sx, xwidth, visWidth, oldY, sy);
-          drawHorizontals(g, sx, xwidth, visWidth, top, bottom);
+          drawVerticals(g, sx, xwidth, visWidth, oldY, bottom);
+          drawHorizontals(g, sx, xwidth, visWidth, top, bottom+1);
 
           // reset top and bottom
           top = -1;
@@ -1387,8 +1387,8 @@ public class SeqCanvas extends JPanel implements ViewportListenerI
       if (inGroup)
       {
         sy = verticalOffset + ((i - startSeq) * charHeight);
-        drawVerticals(g, sx, xwidth, visWidth, oldY, sy);
-        drawHorizontals(g, sx, xwidth, visWidth, top, bottom);
+        drawVerticals(g, sx, xwidth, visWidth, oldY, bottom);
+        drawHorizontals(g, sx, xwidth, visWidth, top, bottom+1);
       }
     }
   }