roiPolyline.setPoints(pts);
result.add(roiPolyline);
break;
case Roi.COMPOSITE:
final ROI2DPath roiPath = new ROI2DPath(((ShapeRoi) roi).getShape());
<BUG>final Rectangle2D.Double roiBounds = roi.getFloatBounds();
roiPath.setPosition2D(new Point2D.Double(roiBounds.x, roiBounds.y));</BUG>
result.add(roiPath);
break;
case Roi.POINT:

roiPolyline.setPoints(pts);
result.add(roiPolyline);
break;
case Roi.COMPOSITE:
final ROI2DPath roiPath = new ROI2DPath(((ShapeRoi) roi).getShape());
final Rectangle2D.Double roiBounds = roi.getFloatBounds();
if (roiPath.canSetPosition())
roiPath.setPosition2D(new Point2D.Double(roiBounds.x, roiBounds.y));
result.add(roiPath);
break;
case Roi.POINT:
