From 48ecdf8120a07b0dab6b6196b9cdcb1490a5bcbc Mon Sep 17 00:00:00 2001 From: rinkk <karsten.rink@ufz.de> Date: Fri, 29 Apr 2016 11:48:39 +0200 Subject: [PATCH] fixed loop limit and added copyright notice --- .../DataView/NetCdfConfigureDialog.cpp | 14 ++++++++++---- .../DataExplorer/DataView/NetCdfConfigureDialog.h | 10 ++++++++-- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/Applications/DataExplorer/DataView/NetCdfConfigureDialog.cpp b/Applications/DataExplorer/DataView/NetCdfConfigureDialog.cpp index 87f6a001635..7352fd353c2 100644 --- a/Applications/DataExplorer/DataView/NetCdfConfigureDialog.cpp +++ b/Applications/DataExplorer/DataView/NetCdfConfigureDialog.cpp @@ -1,5 +1,12 @@ -//file NetCDFConfigureDialog.cpp -//CH Initial implementation +/** + * \copyright + * Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.net) + * Distributed under a Modified BSD License. + * See accompanying file LICENSE.txt or + * http://www.opengeosys.org/project/license + * + */ + #include "NetCdfConfigureDialog.h" @@ -158,7 +165,6 @@ int NetCdfConfigureDialog::setVariableSelect() for (int i=0; i<n_vars; i++) { NcVar const& focusedVar = *_currentFile->get_var(i); - std::cout << focusedVar.num_dims() << std::endl; if (focusedVar.num_dims() > 1) { _id_map.push_back(i); @@ -186,7 +192,7 @@ void NetCdfConfigureDialog::setDimensionSelect() for (int i=0; i < dim; ++i) //write dimension-names into selection-boxes { - for (std::size_t j=0; j<_currentVar->num_dims(), j<4; ++j) + for (std::size_t j=0; j<dim; ++j) dim_box[j]->addItem(_currentVar->get_dim(i)->name()); } comboBoxDim1->setCurrentIndex(dim-2); diff --git a/Applications/DataExplorer/DataView/NetCdfConfigureDialog.h b/Applications/DataExplorer/DataView/NetCdfConfigureDialog.h index 8333b76fead..9ddc5104423 100644 --- a/Applications/DataExplorer/DataView/NetCdfConfigureDialog.h +++ b/Applications/DataExplorer/DataView/NetCdfConfigureDialog.h @@ -1,5 +1,11 @@ -//file NetCDFConfigureDialog.cpp -//CH Initial implementation +/** + * \copyright + * Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.net) + * Distributed under a Modified BSD License. + * See accompanying file LICENSE.txt or + * http://www.opengeosys.org/project/license + * + */ #ifndef NETCDFCONFIGUREDIALOG_H #define NETCDFCONFIGUREDIALOG_H -- GitLab