Skip to content

Commit

Permalink
slightly rearrange test for filled channels
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhillman authored and kdt3rd committed Jul 25, 2019
1 parent 14905ee commit 3c9d0b2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions OpenEXR/IlmImf/ImfDeepTiledInputFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,12 +547,12 @@ TileBufferTask::execute ()
int count = _ifd->getSampleCount(x - xOffset, y - yOffset);
for (unsigned int c = 0; c < _ifd->slices.size(); ++c)
{
// This slice does not exist in the file.
if (_ifd->slices[c]->fill)
continue;
sizeOfTile += count * pixelTypeSize(_ifd->slices[c]->typeInFile);
bytesPerLine += count * pixelTypeSize(_ifd->slices[c]->typeInFile);
// This slice does not exist in the file.
if ( !_ifd->slices[c]->fill)
{
sizeOfTile += count * pixelTypeSize(_ifd->slices[c]->typeInFile);
bytesPerLine += count * pixelTypeSize(_ifd->slices[c]->typeInFile);
}
}
numPixelsPerScanLine[y - tileRange.min.y] += count;
}
Expand Down

0 comments on commit 3c9d0b2

Please sign in to comment.