Skip to content

Commit 2a13669

Browse files
author
jef
committedApr 17, 2011
fix #3750
git-svn-id: http://svn.osgeo.org/qgis/trunk@15746 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 74b0eaa commit 2a13669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/app/qgsfieldcalculator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ void QgsFieldCalculator::accept()
198198

199199
if ( f.type() == QVariant::Double && f.precision() > 0 )
200200
{
201-
v = QString::number( value.number(), 'g', f.precision() );
201+
v = QString::number( value.number(), 'f', f.precision() );
202202
}
203-
else if ( f.type() == QVariant::Double && f.precision() > 0 && f.precision() == 0 )
203+
else if ( f.type() == QVariant::Double && f.precision() == 0 )
204204
{
205205
v = QString::number( qRound( value.number() ) );
206206
}

0 commit comments

Comments
 (0)
Please sign in to comment.