int oldstartres = this.startRes;
if (start > getVisibleAlignmentWidth() - 1)
{
- startRes = getVisibleAlignmentWidth() - 1;
+ startRes = Math.max(getVisibleAlignmentWidth() - 1, 0);
}
else if (start < 0)
{
}
else if (end > getVisibleAlignmentWidth() - 1)
{
- endRes = getVisibleAlignmentWidth() - 1;
+ endRes = Math.max(getVisibleAlignmentWidth() - 1, 0);
}
else
{
int oldstartseq = this.startSeq;
if (start > getVisibleAlignmentHeight() - 1)
{
- startSeq = getVisibleAlignmentHeight() - 1;
+ startSeq = Math.max(getVisibleAlignmentHeight() - 1, 0);
}
else if (start < 0)
{
int oldendseq = this.endSeq;
if (end >= getVisibleAlignmentHeight())
{
- endSeq = getVisibleAlignmentHeight() - 1;
+ endSeq = Math.max(getVisibleAlignmentHeight() - 1, 0);
}
else if (end < 0)
{