return lcimg;
}
- private void paintSeqGroup()
- {
- fastPaint = true;
- repaint();
- }
-
+ /*
+ * Set up a buffered image of the correct height and size for the sequence canvas
+ */
private BufferedImage setupImage()
{
BufferedImage lcimg = null;
{
System.gc();
System.err.println(
- "Selection Group image OutOfMemory Redraw Error.\n" + er);
+ "Group image OutOfMemory Redraw Error.\n" + er);
new OOMWarning("Creating alignment image for display", er);
return null;
sx = 0;
}
+ // don't let width extend beyond current block, or group extent
+ // fixes JAL-2672
if (sx + xwidth >= (endRes - startRes + 1) * charWidth)
{
xwidth = (endRes - startRes + 1) * charWidth - sx;
if (eventName.equals(SequenceGroup.SEQ_GROUP_CHANGED))
{
- paintSeqGroup();
+ fastPaint = true;
+ repaint();
}
else if (av.getWrapAlignment())
{