Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
99e73977
Commit
99e73977
authored
9 years ago
by
Federico Montesino Pouzols
Browse files
Options
Downloads
Patches
Plain Diff
error check, alleviate issue 1304130, probably won't fix it, re #13951
parent
743753b4
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Framework/DataHandling/src/GroupDetectors2.cpp
+4
-0
4 additions, 0 deletions
Framework/DataHandling/src/GroupDetectors2.cpp
with
4 additions
and
0 deletions
Framework/DataHandling/src/GroupDetectors2.cpp
+
4
−
0
View file @
99e73977
...
...
@@ -804,6 +804,10 @@ void GroupDetectors2::readFile(spec2index_map &specs2index, std::istream &File,
numberOfSpectra
=
readInt
(
thisLine
);
}
while
(
numberOfSpectra
==
EMPTY_LINE
);
if
(
numberOfSpectra
<=
0
)
{
throw
std
::
invalid_argument
(
"The number of spectra is zero or negative"
);
}
// the value of this map is the list of spectra numbers that will be
// combined into a group
m_GroupSpecInds
[
spectrumNo
].
reserve
(
numberOfSpectra
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment