mirror of
https://github.com/mapnik/mapnik.git
synced 2026-02-01 17:36:36 +00:00
fix ambiguous std::fabs and the compile on windows
This commit is contained in:
parent
051878c529
commit
680bb22133
@ -97,10 +97,10 @@ void render_raster_symbolizer(raster_symbolizer const &sym,
|
||||
double image_ratio_x = ext.width() / source->data_.width();
|
||||
double image_ratio_y = ext.height() / source->data_.height();
|
||||
double eps = 1e-5;
|
||||
if ( (std::fabs(image_ratio_x - 1) <= eps) &&
|
||||
(std::fabs(image_ratio_y - 1) <= eps) &&
|
||||
(std::fabs(start_x) <= eps) &&
|
||||
(std::fabs(start_y) <= eps) )
|
||||
if ( (std::fabs(image_ratio_x - 1.0) <= eps) &&
|
||||
(std::fabs(image_ratio_y - 1.0) <= eps) &&
|
||||
(std::abs(start_x) <= eps) &&
|
||||
(std::abs(start_y) <= eps) )
|
||||
{
|
||||
composite(source->data_, comp_op, opacity, start_x, start_y);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user