From 4095a83f5da06ae23e660a89d033224a433a66ac Mon Sep 17 00:00:00 2001 From: Martyn Gigg Date: Fri, 6 Dec 2013 12:46:29 +0000 Subject: [PATCH] Fix ComptonProfile attribute storage. If the base class method is not called then the IFunction::asString method does not work as expected. Refs #8378. --- Code/Mantid/Framework/CurveFitting/src/ComptonProfile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Code/Mantid/Framework/CurveFitting/src/ComptonProfile.cpp b/Code/Mantid/Framework/CurveFitting/src/ComptonProfile.cpp index 4ad02fa767f0..0e9d10b26d93 100644 --- a/Code/Mantid/Framework/CurveFitting/src/ComptonProfile.cpp +++ b/Code/Mantid/Framework/CurveFitting/src/ComptonProfile.cpp @@ -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(value.asInt()); else if(name == MASS_NAME) m_mass = value.asDouble(); }