Skip to content

Commit

Permalink
BUG: Fix ExposeMetaData<std::vector<double>> im MetaImageIO
Browse files Browse the repository at this point in the history
Indexes were incorrectly accessed with pre-increment instead of post-increment
  • Loading branch information
issakomi authored and thewtex committed Dec 16, 2024
1 parent 273d665 commit 087a1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/IO/Meta/src/itkMetaImageIO.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ MetaImageIO::WriteImageInformation()
unsigned int i = 0;
while (i < vval.size() - 1)
{
strs << vval[++i] << ' ';
strs << vval[i++] << ' ';
}
strs << vval[i];
}
Expand Down

0 comments on commit 087a1c4

Please sign in to comment.