Resolve "GUI: crash on units change in DepthProbe simulation"
1 unresolved thread
1 unresolved thread
Closes #329 (closed)
Merge request reports
Activity
changed milestone to %21 GUI fixes
requested review from @m.svechnikov
assigned to @ludwig.jaeck
requested review from @j.wuttke and removed review request for @m.svechnikov
assigned to @m.svechnikov and unassigned @ludwig.jaeck
assigned to @ludwig.jaeck and unassigned @m.svechnikov
mentioned in commit 065536ba
295 295 296 296 setBeamDistribution(ParameterDistribution::BeamInclinationAngle, 297 297 *beamItem()->inclinationAngleItem(), *simulation); 298 298 m_coosys.reset(simulation->createCoordSystem()); 299 299 return simulation; 300 300 } 301 301 302 302 const ICoordSystem* DepthProbeInstrumentItem::createCoordSystem() const 303 303 { 304 if (!m_coosys) 305 throw std::runtime_error( 306 "DepthProbeSimulation::createCoordSystem: DepthProbeSimulation not yet initialized"); - Comment on lines +304 to +306
If we load simulated data from project,
createSimulation
is not called. So if!m_coosys
we should call it, otherwise we get exception.Try to save project, open it and change units after.
Edited by Mikhail Svechnikov
Please register or sign in to reply