Skip to content

Commit

Permalink
refs #5849 One sanity check in MDBoxFlatTree.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Jan 27, 2013
1 parent e50e4a5 commit 28ee7be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/MDEvents/src/MDBoxFlatTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ namespace Mantid
Boxes.assign(numBoxes, NULL);

uint64_t totalNumEvents(0);
m_nDim = bc->getNDims();
if(m_nDim<=0)throw std::runtime_error("Workspace dimesnions are not defined properly");
m_nDim = int(bc->getNDims());
if(m_nDim<=0||m_nDim>11 )throw std::runtime_error("Workspace dimesnions are not defined properly");

for (size_t i=0; i<numBoxes; i++)
{
Expand Down

0 comments on commit 28ee7be

Please sign in to comment.