Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Dec 17, 2024
1 parent be79e80 commit 9fd4048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsmetadataalgorithms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ bool QgsSetMetadataFieldsAlgorithm::prepareAlgorithm( const QVariantMap &paramet
if ( parameters.value( QStringLiteral( "CRS" ) ).isValid() )
{
const QgsCoordinateReferenceSystem crs = parameterAsCrs( parameters, QStringLiteral( "CRS" ), context );
if ( crs.isValid() || ( !crs.isValid() && !ignoreEmpty ) )
if ( crs.isValid() || !ignoreEmpty )
{
md->setCrs( crs );
}
Expand Down

0 comments on commit 9fd4048

Please sign in to comment.