Skip to content
Permalink
Browse files
fix #3750
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 2a13669162cff18bc47b918f5f6cdcd72e79e714
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsfieldcalculator.cpp
@@ -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() ) );
}

0 comments on commit 2a13669

Please sign in to comment.