summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-09-30 16:47:20 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-10-07 17:23:17 +0300
commit3b8b68d028934761b3b3d6ab8129e7b637fd14fe (patch)
tree456025203f13a70debd3485182283225435d55df /src
parent79a80630fd31381e5b339d5b1939aac54a363ca7 (diff)
downloadqtlocation-mapboxgl-3b8b68d028934761b3b3d6ab8129e7b637fd14fe.tar.gz
[core] Fix Map::setLatLng behavior
We were erroneously assigning a value to optional<ScreenCoordinate> (null island), causing it to be a valid anchor for Transform::easeTo.
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/map/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp
index d5894504e0..95958602bc 100644
--- a/src/mbgl/map/map.cpp
+++ b/src/mbgl/map/map.cpp
@@ -422,7 +422,7 @@ void Map::moveBy(const ScreenCoordinate& point, const Duration& duration) {
}
void Map::setLatLng(const LatLng& latLng, const Duration& duration) {
- setLatLng(latLng, ScreenCoordinate {}, duration);
+ setLatLng(latLng, optional<ScreenCoordinate> {}, duration);
}
void Map::setLatLng(const LatLng& latLng, optional<EdgeInsets> padding, const Duration& duration) {