Skip to content
Snippets Groups Projects
Commit 7ab2b5ec authored by Federico Montesino Pouzols's avatar Federico Montesino Pouzols
Browse files

<0 divide-by-zero issue, 1292905, re #13918

parent b798c505
No related branches found
No related tags found
No related merge requests found
...@@ -266,7 +266,13 @@ void ImportMDEventWorkspace::exec() { ...@@ -266,7 +266,13 @@ void ImportMDEventWorkspace::exec() {
m_nDimensions + 4; // signal, error, run_no, detector_no m_nDimensions + 4; // signal, error, run_no, detector_no
m_IsFullDataObjects = (nActualColumns == columnsForFullEvents); m_IsFullDataObjects = (nActualColumns == columnsForFullEvents);
m_nDataObjects = posDiffMDEvent / nActualColumns; if (0 == nActualColumns) {
m_nDataObjects = 0;
g_log.warning() << "The number of actual columns found in the file "
"(exlcuding comments) is zero" << std::endl;
} else {
m_nDataObjects = posDiffMDEvent / nActualColumns;
}
// Get the min and max extents in each dimension. // Get the min and max extents in each dimension.
std::vector<double> extentMins(m_nDimensions); std::vector<double> extentMins(m_nDimensions);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment