Commit 3078ac99 authored by Lynch, Vickie's avatar Lynch, Vickie
Browse files

Refs #21752 add unique peak number

parent 22efb2f0
......@@ -751,7 +751,7 @@ void FindPeaksMD::exec() {
peakWS->sort(criteria);
for (auto i = 0; i != peakWS->getNumberPeaks(); ++i) {
auto p = peakWS->getPeak(i);
Peak &p = peakWS->getPeak(i);
p.setPeakNumber(static_cast<int>(i + 1));
}
// Save the output
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment