Skip to content
Snippets Groups Projects
Commit a1038d37 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Initialize default axis names in UnitConverters correctly

parent 2c89bdf3
No related branches found
No related tags found
No related merge requests found
......@@ -98,12 +98,13 @@ void UnitConverterSimple::addDetectorAxis(const IDetector& detector, size_t i_ax
{
auto& axis = detector.getAxis(i_axis);
auto p_roi = detector.regionOfInterest();
auto axis_name = axisName(i_axis);
if (p_roi) {
auto P_roi_axis = p_roi->clipAxisToRoi(i_axis, axis);
addAxisData(axis.getName(), P_roi_axis->getMin(), P_roi_axis->getMax(), defaultUnits(),
addAxisData(axis_name, P_roi_axis->getMin(), P_roi_axis->getMax(), defaultUnits(),
P_roi_axis->size());
} else {
addAxisData(axis.getName(), axis.getMin(), axis.getMax(), defaultUnits(), axis.size());
addAxisData(axis_name, axis.getMin(), axis.getMax(), defaultUnits(), axis.size());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment