On Dec 8, 2010, at 10:23 AM, Ignacio Garcia-Gonzalez wrote:
> First, hello to everybody, since I am a new member of this list,
>
> I have been experiencing some troubles with the paste() command after
> version 1.44h, when doing copy/paste from another image. The following
> example can reproduce the errors encountered:
>
> (a) Start from a displayed images that has a ROI on it, and
> duplicate it:
>
> ImagePlus imp=IJ.getImage();
> ImagePlus imp2=new ImagePlus("Copy", imp.getProcessor().duplicate());
>
> (b) Now perform any operations to modify the original image,
> for example:
>
> IJ.run(imp, "Fill", "slice");
>
> (c) Restore a piece from the duplicated image using copy/paste:
>
> Roi roi=imp.getRoi();
> imp2.setRoi(roi);
> imp2.copy(false);
> imp.paste();
>
> This operation is successful until version 1.44h, but not after it.
> When browsing the source code, I saw that from version 1.44i the code
> for endPaste() within Roi.java changed into only one line (clipboard =
> null;). When using the Roi.class from a previous version, the
> operations is performed successfully.
>
> Could it be related to some bug or should I try a roundabout to
> perform such operation?
This bug is fixed in the 1.44l daily build.
-wayne