Skip to content

Commit

Permalink
Re #8432. Changed from push_back to assign.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Nov 22, 2013
1 parent c8a92e0 commit 2388938
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Code/Mantid/Framework/Crystal/src/SCDCalibratePanels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,15 @@ namespace Mantid
for (size_t i = 0; i < 3; ++i)
{
xRef.push_back((double) j);
yvalB.push_back(0.0);
errB.push_back(1.0);
}
}
}//for @ peak
bounds.push_back(N);
}//for @ bank name

yvalB.assign(xRef.size(), 0.0);
errB.assign(xRef.size(), 1.0);

if( N < 4)//If not well indexed
return boost::shared_ptr<DataObjects::Workspace2D>(new DataObjects::Workspace2D);

Expand Down

0 comments on commit 2388938

Please sign in to comment.