Commit 392555e8 authored by David Gobbi's avatar David Gobbi Committed by Kitware Robot

Merge topic 'dicom-location-crash'

1e849019 Fix a vtkDICOMImageReader crash for empty SliceLocation.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Cory Quammen's avatarCory Quammen <cory.quammen@kitware.com>
Merge-request: !1253
parents 2a3c6f07 1e849019
......@@ -551,7 +551,7 @@ void DICOMAppHelper::SliceLocationCallback(DICOMParser *parser,
this->Implementation->SliceOrderingMap.insert(dicom_stl::pair<const dicom_stl::string,
DICOMOrderingElements>(parser->GetFileName(), ord));
}
else
else if (val)
{
// file found, add new values
(*it).second.SliceLocation =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment