Skip to content
Snippets Groups Projects
Commit 541a3b07 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov Committed by Mikhail Svechnikov
Browse files

cleanup PointwiseAxisItem

parent d958ebc6
No related branches found
No related tags found
1 merge request!2178Do a coordinates conversion for loaded specular data (#811)
......@@ -135,13 +135,12 @@ void PointwiseAxisItem::updateAxIndicators(const Frame& cs)
if (!m_axis || nativeAxisUnits() == "bin")
return;
double min = cs.axis(0).min();
double max = cs.axis(0).max();
if (cs.axis(0).unit() == "rad") {
min = Units::rad2deg(cs.axis(0).min());
max = Units::rad2deg(cs.axis(0).max());
setMin(Units::rad2deg(cs.axis(0).min()));
setMax(Units::rad2deg(cs.axis(0).max()));
} else {
setMin(cs.axis(0).min());
setMax(cs.axis(0).max());
}
setMin(min);
setMax(max);
resize(static_cast<int>(m_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