Skip to content

Commit dafece8

Browse files
committed
fix type and reduce max roi group with safe margin
1 parent ec04c7d commit dafece8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ij/gui/Roi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class Roi extends Object implements Cloneable, java.io.Serializable, Iter
5555
public static final int FERET_ARRAYSIZE = 16; // Size of array with Feret values
5656
public static final int FERET_ARRAY_POINTOFFSET = 8; // Where point coordinates start in Feret array
5757
private static final String NAMES_KEY = "group.names";
58-
private static final String MAX_ROI_GROUP = Integer.MAX_VALUE;
58+
private static final int MAX_ROI_GROUP = Integer.MAX_VALUE - 10; // limit the size of the array for the group name
5959

6060
static final int NO_MODS=0, ADD_TO_ROI=1, SUBTRACT_FROM_ROI=2; // modification states
6161

0 commit comments

Comments
 (0)