Skip to content

Commit 45cecbd

Browse files
authored
Merge pull request #487 from jburel/issue_486
ImageJ usage: Check the class of the correct variable
2 parents fba5251 + 7ed14ed commit 45cecbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/openmicroscopy/shoola/util/roi/io/ROIReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ private List<ROIData> read(long imageID, Roi[] rois)
381381
if (shape != null) {
382382
roiData.addShapeData(shape);
383383
}
384-
} else if (shapeij instanceof PolygonRoi || r instanceof EllipseRoi) {
384+
} else if (shapeij instanceof PolygonRoi || shapeij instanceof EllipseRoi) {
385385
if (type.matches("Point")) {
386386
convertPoint((PointRoi) shapeij, roiData);
387387
} else if (type.matches("Polyline") ||

0 commit comments

Comments
 (0)