Skip to content

Commit

Permalink
Fix formFactor constant when turned off. Refs #7020
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed May 8, 2013
1 parent 03d19c1 commit a6d7079
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ namespace Mantid
/**
* Returns the form factor for the given \f$Q^2\f$ value
* @param qsr :: \f$Q^2\f$ in \f$\AA^{-2}\f$
* @returns The form factorfor the given factor
* @returns The form factor for the given factor or 1.0 if turned off
*/
double ForegroundModel::formFactor(const double qsqr) const
{
if(m_formFactorTable) return m_formFactorTable->value(qsqr);
else return 0.0;
else return 1.0;
}

//-------------------------------------------------------------------------
Expand Down

0 comments on commit a6d7079

Please sign in to comment.