summaryrefslogtreecommitdiff
path: root/src/mbgl
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-03-10 19:49:09 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-03-18 01:26:22 +0200
commitc561ea5d0564193a4fb7cb84fba5a2d008e30540 (patch)
treef0f23a4d2d913f9e7bc6aadfa23548b142a2e4c8 /src/mbgl
parentac70ada2d3e9b842a1fd3f46361d323ddb20d232 (diff)
downloadqtlocation-mapboxgl-c561ea5d0564193a4fb7cb84fba5a2d008e30540.tar.gz
[core] Check for NaNs in mbgl::util::{min,max,clamp}
Diffstat (limited to 'src/mbgl')
-rw-r--r--src/mbgl/annotation/point_annotation_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/annotation/point_annotation_impl.cpp b/src/mbgl/annotation/point_annotation_impl.cpp
index c02b60c748..e073394f7e 100644
--- a/src/mbgl/annotation/point_annotation_impl.cpp
+++ b/src/mbgl/annotation/point_annotation_impl.cpp
@@ -13,7 +13,7 @@ void PointAnnotationImpl::updateLayer(const TileID& tileID, AnnotationTileLayer&
featureProperties.emplace("sprite", point.icon.empty() ? std::string("default_marker") : point.icon);
mbgl::ScreenCoordinate projected = point.position.project();
- projected *= 1 << tileID.z;
+ projected *= std::pow(2, tileID.z);
projected.x = std::fmod(projected.x, 1);
projected.y = std::fmod(projected.y, 1);
projected *= GeometryTileFeature::defaultExtent;