Skip to content

Commit

Permalink
QgsExpression "round" don't convert to QVariant twice
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 5, 2016
1 parent ab57541 commit 624142f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsexpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,7 @@ static QVariant fcnRound( const QVariantList& values, const QgsExpressionContext
if ( values.length() == 1 )
{
double number = getIntValue( values.at( 0 ), parent );
return QVariant( qRound( number ) ).toInt();
return QVariant( qRound( number ) );
}

return QVariant();
Expand Down

0 comments on commit 624142f

Please sign in to comment.