Commit af9f0099 authored by Victor Poughon's avatar Victor Poughon

Merge branch 'mvd_band_index' into 'develop'

Monteverdi: fix band numbering in color setup widget

See merge request !271
parents 0dfeadc0 b30f1904
......@@ -171,7 +171,7 @@ AbstractImageModel
count++)
{
std::ostringstream oss;
oss <<ToStdString( tr("BAND ") )<< count;
oss <<ToStdString( tr("BAND ") )<< count + 1;
outputBandNames.push_back(oss.str());
}
......
......@@ -109,21 +109,6 @@ ColorSetupWidget
QStringList itemTexts( components );
// TODO: Move to mvd::core::AbstractImageModel (see ENHANCED_BAND_NAMES[]).
for( int i=0;
i<itemTexts.size();
++ i )
{
if( itemTexts[ i ].isEmpty() )
{
itemTexts[ i ] = tr( "BAND %1" ).arg( i+1 );
}
else
{
itemTexts[ i ].prepend( QString( "%1: " ).arg( i+1 ) );
}
}
m_UI->rComboBox->addItems( itemTexts );
m_UI->gComboBox->addItems( itemTexts );
m_UI->bComboBox->addItems( itemTexts );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment