Skip to content
Permalink
Browse files

fix after master rebase

  • Loading branch information
etiennesky committed Jul 14, 2012
1 parent 41328f4 commit 79d5dda8a1c612a3f167a183bf69a8752f8f5429
@@ -223,8 +223,8 @@ void QgsMultiBandColorRendererWidget::loadMinMaxValueForBand( int band, QLineEdi
{
QgsRasterBandStats rasterBandStats = mRasterLayer->bandStatistics( band );
double diff = mStdDevSpinBox->value() * rasterBandStats.stdDev;
minVal = rasterBandStats.mean - diff;
maxVal = rasterBandStats.mean + diff;
minMaxValues[0] = rasterBandStats.mean - diff;
minMaxValues[1] = rasterBandStats.mean + diff;
}

if ( ok )
@@ -108,8 +108,8 @@ void QgsSingleBandGrayRendererWidget::on_mLoadPushButton_clicked()
{
QgsRasterBandStats rasterBandStats = mRasterLayer->bandStatistics( band );
double diff = mStdDevSpinBox->value() * rasterBandStats.stdDev;
minVal = rasterBandStats.mean - diff;
maxVal = rasterBandStats.mean + diff;
minMaxValues[0] = rasterBandStats.mean - diff;
minMaxValues[1] = rasterBandStats.mean + diff;
}
else
{

0 comments on commit 79d5dda

Please sign in to comment.
You can’t perform that action at this time.