From 1c9fdaabffaa99abd08a4e3ce95a4ff03622e842 Mon Sep 17 00:00:00 2001 From: Ryan Goulden Date: Wed, 31 Jul 2024 07:45:00 -0700 Subject: [PATCH] Fix iterator invalidation bug --- Source/DataStructureAndEncodingDefinition/gdcmByteSwapFilter.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/Source/DataStructureAndEncodingDefinition/gdcmByteSwapFilter.cxx b/Source/DataStructureAndEncodingDefinition/gdcmByteSwapFilter.cxx index 7b1508f7f..fece7905a 100644 --- a/Source/DataStructureAndEncodingDefinition/gdcmByteSwapFilter.cxx +++ b/Source/DataStructureAndEncodingDefinition/gdcmByteSwapFilter.cxx @@ -135,7 +135,6 @@ bool ByteSwapFilter::ByteSwap() de.SetTag( Tag( SwapperDoOp::Swap( tag.GetGroup() ), SwapperDoOp::Swap( tag.GetElement() ) ) ); copy.Insert( de ); - DS.Remove( de.GetTag() ); } DS = copy; }