diff --git a/Code/Mantid/MantidQt/CustomInterfaces/src/Muon/ALCPeakFittingModel.cpp b/Code/Mantid/MantidQt/CustomInterfaces/src/Muon/ALCPeakFittingModel.cpp index 9992b2449240..6344cde474d0 100644 --- a/Code/Mantid/MantidQt/CustomInterfaces/src/Muon/ALCPeakFittingModel.cpp +++ b/Code/Mantid/MantidQt/CustomInterfaces/src/Muon/ALCPeakFittingModel.cpp @@ -19,7 +19,7 @@ namespace CustomInterfaces MatrixWorkspace_sptr ALCPeakFittingModel::exportWorkspace() { - if ( m_data && m_data->getNumberHistograms() == 3 ) { + if ( m_data && m_data->getNumberHistograms() > 2 ) { return boost::const_pointer_cast(m_data); @@ -54,11 +54,11 @@ namespace CustomInterfaces fit->setProperty("Function", peaks->asString()); fit->setProperty("InputWorkspace", boost::const_pointer_cast(m_data)); fit->setProperty("CreateOutput", true); + fit->setProperty("OutputCompositeMembers", true); fit->execute(); m_data = fit->getProperty("OutputWorkspace"); m_parameterTable = fit->getProperty("OutputParameters"); - setFittedPeaks(static_cast(fit->getProperty("Function"))); }