* number of features within the cut region i.e. by
* func(length of cut)
*/
- String msg = String.format("Cut %d-%d ", from, to);
+ String msg = String.format("Cut %d-%d ", from + 1, to + 1);
if (to - from == 4)
{
// all columns were cut
final int oldFrom = ((Integer) sf.getValue("from")).intValue();
final int oldTo = ((Integer) sf.getValue("to")).intValue();
String msg = String.format(
- "Undo cut of [%d-%d], feature at [%d-%d] ", from, to,
+ "Undo cut of [%d-%d], feature at [%d-%d] ", from + 1, to + 1,
oldFrom, oldTo);
assertEquals(msg + "start", oldFrom, sf.getBegin());
assertEquals(msg + "end", oldTo, sf.getEnd());