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

corr dangling ptr

parent 0224fac3
No related branches found
No related tags found
1 merge request!1383CI: as Hugo does not support symlinks, build figure in old location
Pipeline #90277 passed
......@@ -769,8 +769,8 @@ const ICoordSystem* OffspecInstrumentItem::createCoordSystem() const
new FixedBinAxis("alpha", m_alphaAxis.nbins(), m_alphaAxis.min() * Units::deg,
m_alphaAxis.max() * Units::deg);
const auto* det =
dynamic_cast<const SphericalDetector*>(detectorItem()->createDetector().get());
auto d = detectorItem()->createDetector();
const auto* det = dynamic_cast<const SphericalDetector*>(d.get());
ASSERT(det);
return det->offspecCoords(alphaAxis);
}
......
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