Skip to content
Permalink
Browse files

fix styling

(cherry picked from commit e0574c9)
  • Loading branch information
root676 authored and nyalldawson committed Nov 15, 2020
1 parent b31e569 commit 298e4b65af8c30242e3350893a097895a9e1639a
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/analysis/processing/qgsalgorithmcellstatistics.cpp
@@ -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

0 comments on commit 298e4b6

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