Skip to content

Commit

Permalink
refs #4083 Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Dec 9, 2011
1 parent 09afbf9 commit af0d386
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Code/Mantid/Framework/Algorithms/src/NormaliseToMonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,10 @@ API::MatrixWorkspace_sptr NormaliseToMonitor::getInWSMonitorSpectrum(API::Matrix
std::vector<detid_t> monitors(1,monitorSpec);
std::vector<specid_t> RealMonitorSpec = inputWorkspace->spectraMap().getSpectra(monitors);
monitorSpec = (int)RealMonitorSpec[0];
// if (monitorSpec < 0)
// {
// throw std::runtime_error("MonitorSpectrum must not be negative");
// }
if (monitorSpec < 0)
{
throw std::runtime_error("MonitorSpectrum must not be negative");
}
spec2index_map specs;
const SpectraAxis* axis = dynamic_cast<const SpectraAxis*>(inputWorkspace->getAxis(1));
if ( ! axis)
Expand Down

0 comments on commit af0d386

Please sign in to comment.