Skip to content

Commit

Permalink
fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
root676 authored and nyalldawson committed Nov 15, 2020
1 parent 7ebb66a commit e0574c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/analysis/processing/qgsalgorithmcellstatistics.cpp
Expand Up @@ -191,11 +191,11 @@ QVariantMap QgsCellStatisticsAlgorithm::processAlgorithm( const QVariantMap &par

//force data types on specific functions if input data types don't match
if (
method == QgsRasterAnalysisUtils::Mean ||
method == QgsRasterAnalysisUtils::StandardDeviation ||
method == QgsRasterAnalysisUtils::Variance ||
(method == QgsRasterAnalysisUtils::Median && (mInputs.size() % 2 == 0) )
)
method == QgsRasterAnalysisUtils::Mean ||
method == QgsRasterAnalysisUtils::StandardDeviation ||
method == QgsRasterAnalysisUtils::Variance ||
( method == QgsRasterAnalysisUtils::Median && ( mInputs.size() % 2 == 0 ) )
)
{
if ( static_cast<int>( mDataType ) < 6 )
mDataType = Qgis::Float32; //force float on mean, stddev and median with equal number of input layers if all inputs are integer
Expand Down

0 comments on commit e0574c9

Please sign in to comment.