{
from_column = 0;
}
- if (to_column > getContactHeight())
+ if (to_column >= getContactHeight())
{
- to_column = getContactHeight();
+ to_column = getContactHeight() - 1;
}
ContactRange cr = new ContactRange();
cr.setFrom_column(from_column);
}
}
}
- if (tot > 0)
+ if (tot > 0 && to_column > from_column)
{
cr.setMean(tot / (1 + to_column - from_column));
}
}
return cr;
}
+
@Override
public int[] getMappedPositionsFor(int cStart, int cEnd)
{
- return clist.getMappedPositionsFor(cStart, cEnd);
+ return clist.getMappedPositionsFor(cStart, cEnd);
}
+
@Override
public Color getColourForGroup()
{