Fix the wrong statistics value in the frame information dock

This commit is contained in:
jfmcarreira committed 2016-04-10 21:05:34 +01:00
1 parent 6e1455fa52
commit 3a3c012820
5 files changed
+37 -35

No files matched your search

+3 -3
View File
@@ -427,10 +427,9 @@ Void FramePropertiesDock::updateStatistiques()
Int min = minInterv->value();
Int max = maxInterv->value();
Int channel = histogramWidget->m_channelType;
//Int channel = channelCB->currentIndex();
if( channel == HistogramWidget::ColorChannelsHistogram )
channel = colorsCB->currentIndex() + 1;
channel = colorsCB->currentIndex();
PlaYUVerFrame* frame;
@@ -528,7 +527,8 @@ Void FramePropertiesDock::slotChannelChanged( Int channel )
colorsCB->setEnabled( true );
break;
default: // Luminance.
histogramWidget->m_channelType = HistogramWidget::LumaHistogram;
//histogramWidget->m_channelType = HistogramWidget::LumaHistogram;
histogramWidget->m_channelType = HistogramWidget::FirstChannelHistogram;
colorsCB->setEnabled( false );
break;
}