Skip to content
Permalink
Browse files

QgsExpression "round" don't convert to QVariant twice

  • Loading branch information
m-kuhn committed Aug 5, 2016
1 parent ab57541 commit 624142f4c0abd6c62683beb552dd81079a464aee
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsexpression.cpp
@@ -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();

0 comments on commit 624142f

Please sign in to comment.
You can’t perform that action at this time.