Skip to content

Commit

Permalink
Merge pull request #4827 from DelazJ/num_selected
Browse files Browse the repository at this point in the history
Simplify the error message
  • Loading branch information
nyalldawson committed Jul 9, 2017
2 parents 745da0f + ec40783 commit ad31087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/expression/qgsexpressionfunction.cpp
Expand Up @@ -1306,7 +1306,7 @@ static QVariant fcnNumSelected( const QVariantList &values, const QgsExpressionC
layer = QgsExpressionUtils::getVectorLayer( values.at( 0 ), parent );
else
{
parent->setEvalErrorString( QObject::tr( "Function `num_selected` requires no more than one QgsExpressionFunction::Parameter. %1 given." ).arg( values.length() ) );
parent->setEvalErrorString( QObject::tr( "Function `num_selected` requires no more than one parameter. %1 given." ).arg( values.length() ) );
return QVariant();
}

Expand Down

0 comments on commit ad31087

Please sign in to comment.