Overlay overlay2 = overlay.crop(ip.getRoi());
if (imp.getStackSize()>1)
overlay2.crop(imp.getCurrentSlice(), imp.getCurrentSlice());
imp2.setOverlay(overlay2);
}
<BUG>if (Recorder.record)

Recorder.recordCall("imp2 = imp.crop();");
return imp2;</BUG>
}

Overlay overlay2 = overlay.crop(ip.getRoi());
if (imp.getStackSize()>1)
overlay2.crop(imp.getCurrentSlice(), imp.getCurrentSlice());
imp2.setOverlay(overlay2);
}
if (Recorder.record) {
if (imp.getStackSize()==1)
Recorder.recordCall("imp2 = imp.duplicate();");
else
Recorder.recordCall("imp2 = imp.crop();");
}
return imp2;
}
