Skip to content

Commit

Permalink
Refs #9531. Adjusted Fit to make tests work.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wedel committed Jun 1, 2014
1 parent c782c3d commit c909130
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Code/Mantid/Framework/CurveFitting/src/Fit.cpp
Expand Up @@ -233,6 +233,8 @@ This example repeats the previous one but with the Sigmas of the two Gaussians t
#include "MantidCurveFitting/MultiDomainCreator.h"
#include "MantidCurveFitting/Convolution.h"

#include "MantidCurveFitting/SeqDomainSpectrumCreator.h"

#include "MantidAPI/FuncMinimizerFactory.h"
#include "MantidAPI/IFuncMinimizer.h"
#include "MantidAPI/DomainCreatorFactory.h"
Expand Down Expand Up @@ -391,7 +393,11 @@ namespace CurveFitting
if ( boost::dynamic_pointer_cast<const API::MatrixWorkspace>(ws) &&
!boost::dynamic_pointer_cast<API::IFunctionMD>(fun) )
{
creator = new FitMW(this, workspacePropertyName, m_domainType);
if(boost::dynamic_pointer_cast<CurveFitting::ParamFunction>(fun)) {
creator = new SeqDomainSpectrumCreator(this, workspacePropertyName);
} else {
creator = new FitMW(this, workspacePropertyName, m_domainType);
}
}
else
{
Expand Down

0 comments on commit c909130

Please sign in to comment.