Commit b30f1904 authored by Victor Poughon's avatar Victor Poughon

BUG: fix monteverdi band numbering

parent 63777ce1
......@@ -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