Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 5, 2012
1 parent 08bd084 commit 8cb578f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsexpression.cpp
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsrenderchecker.h
Expand Up @@ -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:

Expand Down

0 comments on commit 8cb578f

Please sign in to comment.