diff --git a/Code/Visu/otbImageViewerBase.txx b/Code/Visu/otbImageViewerBase.txx index 1a9723d5d55b0ee6e663069bbc3f75b29a8c35fe..9576664d208426bddc3ab1b6d26d4d54f9c393f5 100644 --- a/Code/Visu/otbImageViewerBase.txx +++ b/Code/Visu/otbImageViewerBase.txx @@ -1139,14 +1139,14 @@ ImageViewerBase<TPixel,TLabel> { m_ScrollWidget->SetViewModel(viewModel); m_ScrollWidget->SetRedChannelIndex(m_RedChannelIndex); - m_ScrollWidget->SetRedChannelIndex(m_GreenChannelIndex); + m_ScrollWidget->SetGreenChannelIndex(m_GreenChannelIndex); } m_FullWidget->SetViewModel(viewModel); m_ZoomWidget->SetViewModel(viewModel); m_ZoomWidget->SetRedChannelIndex(m_RedChannelIndex); m_FullWidget->SetRedChannelIndex(m_RedChannelIndex); - m_ZoomWidget->SetRedChannelIndex(m_GreenChannelIndex); - m_FullWidget->SetRedChannelIndex(m_GreenChannelIndex); + m_ZoomWidget->SetGreenChannelIndex(m_GreenChannelIndex); + m_FullWidget->SetGreenChannelIndex(m_GreenChannelIndex); ComputeNormalizationFactors(); @@ -1167,7 +1167,7 @@ ImageViewerBase<TPixel,TLabel> { m_ScrollWidget->SetViewModel(viewModel); m_ScrollWidget->SetRedChannelIndex(m_RedChannelIndex); - m_ScrollWidget->SetRedChannelIndex(m_GreenChannelIndex); + m_ScrollWidget->SetGreenChannelIndex(m_GreenChannelIndex); } m_FullWidget->SetViewModel(viewModel); m_ZoomWidget->SetViewModel(viewModel);