Skip to content

Commit 7ed14ed

Browse files
committed
Check the class of the correct variable
1 parent f8466a5 commit 7ed14ed

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)