diff --git a/components/formats-gpl/src/loci/formats/in/OIRReader.java b/components/formats-gpl/src/loci/formats/in/OIRReader.java index cda2e7f3cce..cb5b0883427 100644 --- a/components/formats-gpl/src/loci/formats/in/OIRReader.java +++ b/components/formats-gpl/src/loci/formats/in/OIRReader.java @@ -195,7 +195,7 @@ public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) lastChannel = zct[1]; // Gets all the PixelBlock potentially contained within c, z and t - PixelBlock[] blocks = cztToPixelBlocks.get(new CZTKey(zct[1], zct[0], zct[2])); + PixelBlock[] blocks = cztToPixelBlocks.get(new CZTKey((zct[1] % channels.size()), zct[0], zct[2])); if ((blocks == null) || (blocks.length == 0)) { LOGGER.warn("No pixel blocks for plane #{}", no);