mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
fix windows build
This commit is contained in:
parent
08bd084aa8
commit
8cb578f698
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user