Skip to content

Commit

Permalink
[processing] fix condition and use more generic "htm" constant for
Browse files Browse the repository at this point in the history
filter testing
  • Loading branch information
alexbruy committed Mar 2, 2018
1 parent 22fea14 commit 6f38a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/processing/qgsprocessingparameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3402,7 +3402,7 @@ QString QgsProcessingParameterFileDestination::valueAsPythonString( const QVaria

QgsProcessingOutputDefinition *QgsProcessingParameterFileDestination::toOutputDefinition() const
{
if ( !mFileFilter.isEmpty() and mFileFilter.contains( QStringLiteral( "html" ), Qt::CaseInsensitive ) )
if ( !mFileFilter.isEmpty() && mFileFilter.contains( QStringLiteral( "htm" ), Qt::CaseInsensitive ) )
{
return new QgsProcessingOutputHtml( name(), description() );
}
Expand Down

0 comments on commit 6f38a50

Please sign in to comment.