From 5391ed6a508c499b7339eb9a7ab10ba09ec286b8 Mon Sep 17 00:00:00 2001 From: Joey Kleingers Date: Tue, 13 Aug 2024 11:47:45 -0400 Subject: [PATCH] BUG FIX: Crop Image Geometry now retains the proper geometry length units (#1046) Signed-off-by: Joey Kleingers --- .../src/SimplnxCore/Filters/CropImageGeometryFilter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugins/SimplnxCore/src/SimplnxCore/Filters/CropImageGeometryFilter.cpp b/src/Plugins/SimplnxCore/src/SimplnxCore/Filters/CropImageGeometryFilter.cpp index 2f26294bd2..33af0058ac 100644 --- a/src/Plugins/SimplnxCore/src/SimplnxCore/Filters/CropImageGeometryFilter.cpp +++ b/src/Plugins/SimplnxCore/src/SimplnxCore/Filters/CropImageGeometryFilter.cpp @@ -451,8 +451,8 @@ IFilter::PreflightResult CropImageGeometryFilter::preflightImpl(const DataStruct std::string cellDataName = selectedCellData->getName(); ignorePaths.push_back(srcImagePath.createChildPath(cellDataName)); - resultOutputActions.value().appendAction( - std::make_unique(destImagePath, geomDims, targetOrigin, CreateImageGeometryAction::SpacingType{spacing[0], spacing[1], spacing[2]}, cellDataName)); + resultOutputActions.value().appendAction(std::make_unique( + destImagePath, geomDims, targetOrigin, CreateImageGeometryAction::SpacingType{spacing[0], spacing[1], spacing[2]}, cellDataName, srcImageGeomPtr->getUnits())); // Now loop over each array in the source image geometry's cell attribute matrix and create the corresponding arrays // in the destination image geometry's attribute matrix