diff --git a/src/plugins/editing/CellMLZincMappingView/src/cellmlzincmappingviewzincwidget.cpp b/src/plugins/editing/CellMLZincMappingView/src/cellmlzincmappingviewzincwidget.cpp index 65996f7bb6..2f986c3f21 100644 --- a/src/plugins/editing/CellMLZincMappingView/src/cellmlzincmappingviewzincwidget.cpp +++ b/src/plugins/editing/CellMLZincMappingView/src/cellmlzincmappingviewzincwidget.cpp @@ -258,7 +258,7 @@ void CellMLZincMappingViewZincWidget::setup() void CellMLZincMappingViewZincWidget::setupRegion() { - //Create and initialize region and scene + // Create and initialize region and scene OpenCMISS::Zinc::Scene scene = mZincContext.getDefaultRegion().getScene(); @@ -276,7 +276,8 @@ void CellMLZincMappingViewZincWidget::setupRegion() void CellMLZincMappingViewZincWidget::initAuxFile() { - // for each exnode file, seek for the exelem + // For each exnode file, seek for the exelem + for (auto file : mZincMeshFileNames) { if (file.endsWith(".exnode")) { QString newFile = file; @@ -336,7 +337,7 @@ void CellMLZincMappingViewZincWidget::draw() scene.beginChange(); OpenCMISS::Zinc::Materialmodule materialModule = scene.getMaterialmodule(); - //Black lines + // Black lines OpenCMISS::Zinc::GraphicsLines lines = scene.createGraphicsLines(); @@ -488,7 +489,7 @@ void CellMLZincMappingViewZincWidget:: setNodeSizes(int pSize) { //============================================================================== void CellMLZincMappingViewZincWidget::eraseNode(int pId) -{ +{ if (pId==-1) { pId = mIdSelectedNode; }