Skip to content
Snippets Groups Projects
Commit cd84c8c5 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Fix of crash in the case of failed fitting job.

parent da31a275
No related branches found
No related tags found
No related merge requests found
...@@ -220,6 +220,9 @@ IntensityDataItem *FitComparisonWidget::createRelativeDifferenceItem() ...@@ -220,6 +220,9 @@ IntensityDataItem *FitComparisonWidget::createRelativeDifferenceItem()
void FitComparisonWidget::calculateRelativeDifference() void FitComparisonWidget::calculateRelativeDifference()
{ {
if(!m_simulatedDataItem->getOutputData()) // job failed
return;
Q_ASSERT(m_realDataItem); Q_ASSERT(m_realDataItem);
Q_ASSERT(m_simulatedDataItem); Q_ASSERT(m_simulatedDataItem);
Q_ASSERT(m_relativeDiffItem); Q_ASSERT(m_relativeDiffItem);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment