[QGIS Commit] r15746 - trunk/qgis/src/app
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sun Apr 17 09:40:25 EDT 2011
Author: jef
Date: 2011-04-17 06:40:25 -0700 (Sun, 17 Apr 2011)
New Revision: 15746
Modified:
trunk/qgis/src/app/qgsfieldcalculator.cpp
Log:
fix #3750
Modified: trunk/qgis/src/app/qgsfieldcalculator.cpp
===================================================================
--- trunk/qgis/src/app/qgsfieldcalculator.cpp 2011-04-17 13:23:23 UTC (rev 15745)
+++ trunk/qgis/src/app/qgsfieldcalculator.cpp 2011-04-17 13:40:25 UTC (rev 15746)
@@ -198,9 +198,9 @@
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() ) );
}
More information about the QGIS-commit
mailing list