Skip to content
Snippets Groups Projects
Commit b30f1904 authored by Victor Poughon's avatar Victor Poughon
Browse files

BUG: fix monteverdi band numbering

parent 63777ce1
No related branches found
No related tags found
No related merge requests found
...@@ -171,7 +171,7 @@ AbstractImageModel ...@@ -171,7 +171,7 @@ AbstractImageModel
count++) count++)
{ {
std::ostringstream oss; std::ostringstream oss;
oss <<ToStdString( tr("BAND ") )<< count; oss <<ToStdString( tr("BAND ") )<< count + 1;
outputBandNames.push_back(oss.str()); outputBandNames.push_back(oss.str());
} }
......
...@@ -109,21 +109,6 @@ ColorSetupWidget ...@@ -109,21 +109,6 @@ ColorSetupWidget
QStringList itemTexts( components ); 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->rComboBox->addItems( itemTexts );
m_UI->gComboBox->addItems( itemTexts ); m_UI->gComboBox->addItems( itemTexts );
m_UI->bComboBox->addItems( itemTexts ); m_UI->bComboBox->addItems( itemTexts );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment