Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kannes authored and nyalldawson committed Apr 23, 2023
1 parent ae10741 commit eea6b1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/analysis/processing/qgsalgorithmconstantraster.cpp
Expand Up @@ -95,8 +95,9 @@ QVariantMap QgsConstantRasterAlgorithm::processAlgorithm( const QVariantMap &par
const double value = parameterAsDouble( parameters, QStringLiteral( "NUMBER" ), context );
const int typeId = parameterAsInt( parameters, QStringLiteral( "OUTPUT_TYPE" ), context );

if ( pixelSize <= 0 ) {
throw QgsProcessingException( QObject::tr( "Pixel size must be greater than 0." ) );
if ( pixelSize <= 0 )
{
throw QgsProcessingException( QObject::tr( "Pixel size must be greater than 0." ) );
}

//implement warning if input float has decimal places but is written to integer raster
Expand Down
5 changes: 3 additions & 2 deletions src/analysis/processing/qgsalgorithmrandomraster.cpp
Expand Up @@ -56,8 +56,9 @@ bool QgsRandomRasterAlgorithmBase::prepareAlgorithm( const QVariantMap &paramete
mExtent = parameterAsExtent( parameters, QStringLiteral( "EXTENT" ), context, mCrs );
mPixelSize = parameterAsDouble( parameters, QStringLiteral( "PIXEL_SIZE" ), context );

if ( mPixelSize <= 0 ) {
throw QgsProcessingException( QObject::tr( "Pixel size must be greater than 0." ) );
if ( mPixelSize <= 0 )
{
throw QgsProcessingException( QObject::tr( "Pixel size must be greater than 0." ) );
}

return true;
Expand Down

0 comments on commit eea6b1c

Please sign in to comment.