diff --git a/Code/ApplicationEngine/otbWrapperParameterGroup.cxx b/Code/ApplicationEngine/otbWrapperParameterGroup.cxx index cca278bc321ec00ab2e528bb8a48ad36d1132b0d..f5729107832d43f5d4a6f25dcaa83890d2351b3e 100644 --- a/Code/ApplicationEngine/otbWrapperParameterGroup.cxx +++ b/Code/ApplicationEngine/otbWrapperParameterGroup.cxx @@ -399,7 +399,6 @@ ParameterGroup::GetParameterByKey(std::string name) { // Check that splittedName[1] is one of the choice ParameterGroup::Pointer associatedParam; - unsigned int nbChoices = parentAsChoice->GetNbChoices(); // will throw if splittedName[1] is not a choice key associatedParam = parentAsChoice->GetChoiceParameterGroupByKey(splittedName[1]); diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetListViewParameter.cxx b/Code/Wrappers/QtWidget/otbWrapperQtWidgetListViewParameter.cxx index 9196863bdc6475502cd0f1706c8b3cc8628ebbe6..e29d8a81e24183c197946e83556f58dcc265510b 100644 --- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetListViewParameter.cxx +++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetListViewParameter.cxx @@ -60,6 +60,8 @@ void QtWidgetListViewParameter::DoCreateWidget() m_ListView = new QListWidget(); m_ListView->setToolTip(m_ListViewParam->GetDescription()); m_ListView->setSelectionMode(QAbstractItemView::MultiSelection); + m_ListView->setResizeMode(QListView::Adjust); + //m_ListView->resize(m_ListView->width(), 5); connect( m_ListView, SIGNAL(itemSelectionChanged()), this, SLOT(SelectedItems()) ); connect( GetModel(), SIGNAL(UpdateGui()), this, SLOT(UpdateGUI() ) );