Skip to content
Snippets Groups Projects
Commit f0621abb authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm local var

parent 7710e20e
No related branches found
No related tags found
1 merge request!50copy edits in converter context
......@@ -99,9 +99,7 @@ QString ImportDataInfo::axisLabel(size_t axis_index) const
else if (rank == 1) {
if (axis_index > 0)
return "Signal [a.u.]";
auto label_map = AxisNames::specAxis;
return QString::fromStdString(label_map[m_units]);
return QString::fromStdString(AxisNames::specAxis.at(m_units));
}
throw GUIHelpers::Error("Error in ImportDataInfo::axisLabel: unsupported data type");
}
......
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