Commit a4f5bcca authored by Purves, Murray's avatar Purves, Murray
Browse files

Adding missing = to allow SpectrumData retrieval for index 0

parent 131b88fa
Pipeline #16162 failed with stages
in 7 minutes and 35 seconds
......@@ -245,7 +245,7 @@ void Spectrum::spectrumData(int i, std::string &title, std::string &source,
float &totalNeutronCount, int &numberOfChannels,
std::vector<float> &countsByChannel)
{
if (i > 0 && i < mSpectrumData.size())
if (i >= 0 && i < mSpectrumData.size())
{
size_t i_ = size_t(i);
SpectrumData spectrum = mSpectrumData[i_];
......
Markdown is supported
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