Skip to content
Snippets Groups Projects
Commit 1eb9211d authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

rm unneeded conversion deg->rad in makeFrame()

parent 2166a95d
No related branches found
No related tags found
No related merge requests found
......@@ -419,12 +419,7 @@ Frame SpecularInstrumentItem::makeFrame() const
});
return Frame(std::move(ax.clone()));
} else if (pAxis->unit() == "deg") {
Scale ax = pAxis->transformedScale(Coordinate(pAxis->coordName(), "rad").label(),
Units::deg2rad);
return Frame(std::move(ax.clone()));
}
Scale* ax0 = pAxis->clone();
std::vector<const Scale*> f{ax0};
return Frame(f);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment