Skip to content

Commit

Permalink
Re #6192. Prefer setting spectrum number via ISpectrum class.
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellTaylor committed Mar 11, 2013
1 parent 1188cc7 commit ec6b29d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void SplineBackground::exec()
/* output the smoothed curve */
API::MatrixWorkspace_sptr outWS = WorkspaceFactory::Instance().create(inWS,1,X.size(),Y.size());
{
outWS->getAxis(1)->setValue(0, inWS->getAxis(1)->spectraNo(spec));
outWS->getSpectrum(0)->setSpectrumNo(inWS->getSpectrum(spec)->getSpectrumNo());
double xi, yi, yerr;
for (MantidVec::size_type i=0;i<Y.size();i++)
{
Expand Down

0 comments on commit ec6b29d

Please sign in to comment.