fix windows build

This commit is contained in:
Juergen E. Fischer 2012-09-05 12:01:47 +02:00
parent 08bd084aa8
commit 8cb578f698
2 changed files with 3 additions and 3 deletions

View File

@ -775,13 +775,13 @@ static QVariant fcnRound( const QVariantList& values , QgsFeature *f, QgsExpress
{
double number = getDoubleValue( values.at( 0 ), parent );
double scaler = pow( 10.0, getIntValue( values.at( 1 ), parent ) );
return QVariant( round( number * scaler ) / scaler );
return QVariant( qRound( number * scaler ) / scaler );
}
if ( values.length() == 1 )
{
double number = getIntValue( values.at( 0 ), parent );
return QVariant( round( number ) ).toInt();
return QVariant( qRound( number ) ).toInt();
}
return QVariant();

View File

@ -26,7 +26,7 @@ class QImage;
* write an image and compare it to an expected result
* or render time.
*/
class QgsRenderChecker
class CORE_EXPORT QgsRenderChecker
{
public: