Skip to content

Commit

Permalink
Merge pull request #4214 from sbesson/issue_4209
Browse files Browse the repository at this point in the history
Fix incorrect logical operators in Zeiss LSM and OME-XML readers
  • Loading branch information
dgault authored Jul 29, 2024
2 parents 678fd01 + 198c4a6 commit 0a895ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ protected void initFile(String id) throws FormatException, IOException {
Integer t = omexmlMeta.getPixelsSizeT(i).getValue();
Integer z = omexmlMeta.getPixelsSizeZ(i).getValue();
Integer c = omexmlMeta.getPixelsSizeC(i).getValue();
if (w == null || h == null || t == null || z == null | c == null) {
if (w == null || h == null || t == null || z == null || c == null) {
throw new FormatException("Image dimensions not found");
}

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

0 comments on commit 0a895ae

Please sign in to comment.