Skip to content

Commit 624142f

Browse files
committed
QgsExpression "round" don't convert to QVariant twice
1 parent ab57541 commit 624142f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsexpression.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2617,7 +2617,7 @@ static QVariant fcnRound( const QVariantList& values, const QgsExpressionContext
26172617
if ( values.length() == 1 )
26182618
{
26192619
double number = getIntValue( values.at( 0 ), parent );
2620-
return QVariant( qRound( number ) ).toInt();
2620+
return QVariant( qRound( number ) );
26212621
}
26222622

26232623
return QVariant();

0 commit comments

Comments
 (0)