Skip to content

Commit

Permalink
fix #3750
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@15746 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 17, 2011
1 parent 74b0eaa commit 2a13669
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsfieldcalculator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ void QgsFieldCalculator::accept()

if ( f.type() == QVariant::Double && f.precision() > 0 )
{
v = QString::number( value.number(), 'g', f.precision() );
v = QString::number( value.number(), 'f', f.precision() );
}
else if ( f.type() == QVariant::Double && f.precision() > 0 && f.precision() == 0 )
else if ( f.type() == QVariant::Double && f.precision() == 0 )
{
v = QString::number( qRound( value.number() ) );
}
Expand Down

0 comments on commit 2a13669

Please sign in to comment.