Object pixels = null;
Overlay overlay2 = null;
if (stack.isVirtual() && !((stack instanceof FileInfoVirtualStack)||(stack instanceof AVI_Reader))) {
ImageProcessor ip2 = stack.getProcessor(currentSlice);
overlay2 = ip2.getOverlay();
<BUG>if (overlay2!=null || getOverlay()!=null)
setOverlay(overlay2);</BUG>
pixels = ip2.getPixels();
} else
pixels = stack.getPixels(currentSlice);

Object pixels = null;
Overlay overlay2 = null;
if (stack.isVirtual() && !((stack instanceof FileInfoVirtualStack)||(stack instanceof AVI_Reader))) {
ImageProcessor ip2 = stack.getProcessor(currentSlice);
overlay2 = ip2.getOverlay();
if (overlay2!=null)
setOverlay(overlay2);
pixels = ip2.getPixels();
} else
pixels = stack.getPixels(currentSlice);
