Skip to content
Snippets Groups Projects
Commit ff074047 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

throw -> ASSERT

parent 0252b43b
No related branches found
No related tags found
1 merge request!1647simplify data import
......@@ -13,6 +13,7 @@
// ************************************************************************************************
#include "GUI/View/Import/RealDataSelectorWidget.h"
#include "Base/Util/Assert.h"
#include "Device/Data/Datafield.h"
#include "Device/IO/IOFactory.h"
#include "GUI/Application/ApplicationSettings.h"
......@@ -319,11 +320,7 @@ void RealDataSelectorWidget::importData2D()
continue;
realItem = m_treeModel->injectDataItem(2);
realItem->setRealItemName(QFileInfo(fileName).baseName());
if (data->rank() != 2)
throw std::runtime_error(
"The content could not be interpreted correctly as 2-dimensional");
ASSERT(data->rank() == 2);
realItem->setDatafield(data.release());
setCurrentItem(realItem);
} catch (std::exception& ex) {
......
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