Skip to content
Permalink
Browse files

fix windows build

  • Loading branch information
jef-n committed Sep 5, 2012
1 parent 08bd084 commit 8cb578f698341e01952bf60f51c3b5edbe34a401
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/core/qgsexpression.cpp
  2. +1 −1 src/core/qgsrenderchecker.h
@@ -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();
@@ -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:

0 comments on commit 8cb578f

Please sign in to comment.
You can’t perform that action at this time.