Skip to content

Commit 0a895ae

Browse files
authored
Merge pull request #4214 from sbesson/issue_4209
Fix incorrect logical operators in Zeiss LSM and OME-XML readers
2 parents 678fd01 + 198c4a6 commit 0a895ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/formats-bsd/src/loci/formats/in/OMEXMLReader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ protected void initFile(String id) throws FormatException, IOException {
290290
Integer t = omexmlMeta.getPixelsSizeT(i).getValue();
291291
Integer z = omexmlMeta.getPixelsSizeZ(i).getValue();
292292
Integer c = omexmlMeta.getPixelsSizeC(i).getValue();
293-
if (w == null || h == null || t == null || z == null | c == null) {
293+
if (w == null || h == null || t == null || z == null || c == null) {
294294
throw new FormatException("Image dimensions not found");
295295
}
296296

components/formats-gpl/src/loci/formats/in/ZeissLSMReader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ else if (zCoordinates.size() == i) {
11341134
// if this is not the first channel, copy the color from the
11351135
// previous channel (necessary for SIM data)
11361136
// otherwise set the color to white, as this will display better
1137-
if (red == 0 && green == 0 & blue == 0) {
1137+
if (red == 0 && green == 0 && blue == 0) {
11381138
if (i > 0 && isSIM) {
11391139
red = channelColor[i - 1].getRed();
11401140
green = channelColor[i - 1].getGreen();

0 commit comments

Comments
 (0)