Skip to content

Commit

Permalink
Fixes #50288 - Fix extension detection for raster processing output
Browse files Browse the repository at this point in the history
  • Loading branch information
nicogodet authored and nyalldawson committed Oct 21, 2022
1 parent 0ae38bd commit 6b4fc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/processing/qgsprocessingprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ bool QgsProcessingProvider::isSupportedOutputValue( const QVariant &outputValue,
else if ( parameter->type() == QgsProcessingParameterRasterDestination::typeName() )
{
const QFileInfo fi( outputPath );
const QString extension = fi.completeSuffix();
const QString extension = fi.suffix();
if ( !supportedOutputRasterLayerExtensions().contains( extension, Qt::CaseInsensitive ) )
{
error = tr( "“.%1” files are not supported as outputs for this algorithm" ).arg( extension );
Expand Down

0 comments on commit 6b4fc04

Please sign in to comment.