Skip to content

Commit

Permalink
BUG: fix AxisSize when final dimension is 1
Browse files Browse the repository at this point in the history
  • Loading branch information
haaput authored and dzenanz committed Dec 16, 2019
1 parent cb48757 commit 9e545f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/itkTileConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ struct ITK_TEMPLATE_EXPORT TileConfiguration
Tiles.push_back(tile);
line = getNextNonCommentLine(tileFile);
}
AxisSizes[Dimension - 1] = cInd[Dimension - 1] + 1;

for (unsigned d = 0; d < Dimension; ++d)
{
AxisSizes[d] = cInd[d] + 1;
}

size_t expectedSize = this->LinearSize();
itkAssertOrThrowMacro(expectedSize == Tiles.size(),
Expand Down

0 comments on commit 9e545f0

Please sign in to comment.