From 087a1c4fb0abe5fae279bf0dc285d4fb962424c6 Mon Sep 17 00:00:00 2001 From: Mihail Isakov Date: Sat, 14 Dec 2024 04:35:26 +0100 Subject: [PATCH] BUG: Fix ExposeMetaData> im MetaImageIO Indexes were incorrectly accessed with pre-increment instead of post-increment --- Modules/IO/Meta/src/itkMetaImageIO.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/IO/Meta/src/itkMetaImageIO.cxx b/Modules/IO/Meta/src/itkMetaImageIO.cxx index f6c2133cc0d..b63838103bc 100644 --- a/Modules/IO/Meta/src/itkMetaImageIO.cxx +++ b/Modules/IO/Meta/src/itkMetaImageIO.cxx @@ -637,7 +637,7 @@ MetaImageIO::WriteImageInformation() unsigned int i = 0; while (i < vval.size() - 1) { - strs << vval[++i] << ' '; + strs << vval[i++] << ' '; } strs << vval[i]; }