Skip to content

Commit

Permalink
Fix ComptonProfile attribute storage.
Browse files Browse the repository at this point in the history
If the base class method is not called then the IFunction::asString method
does not work as expected.
Refs #8378.
  • Loading branch information
martyngigg committed Dec 6, 2013
1 parent d2e7e1e commit 4095a83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Code/Mantid/Framework/CurveFitting/src/ComptonProfile.cpp
Expand Up @@ -222,6 +222,7 @@ namespace CurveFitting
*/
void ComptonProfile::setAttribute(const std::string& name,const Attribute& value)
{
IFunction::setAttribute(name,value); // Make sure the base-class stores it
if(name == WSINDEX_NAME) m_wsIndex = static_cast<size_t>(value.asInt());
else if(name == MASS_NAME) m_mass = value.asDouble();
}
Expand Down

0 comments on commit 4095a83

Please sign in to comment.