Commit d811b386 authored by Jørgen Lind's avatar Jørgen Lind
Browse files

Fix bug in GetVDSIJKGridDefinitionFromVDSMetadata

parent 12ef9317
Pipeline #70323 passed with stages
in 20 minutes and 38 seconds
......@@ -202,9 +202,10 @@ static void StaticGetVDSIJKGridDefinitionFromVDSMetadata(VDSIJKGridDefinition &v
}
for (auto& n : vdsIjkGridDefinition.origin.data)
for (int addScaleIndex = 0; addScaleIndex < 3; addScaleIndex++)
{
n += cAxisDescriptor.GetCoordinateMin();
auto& n = vdsIjkGridDefinition.origin.data[addScaleIndex];
n += cStepVector[addScaleIndex] * cAxisDescriptor.GetCoordinateMin();
}
if (cAxisDescriptor.GetCoordinateStep() != 0)
......
Supports Markdown
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