diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-09-30 16:47:20 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-10-07 17:23:17 +0300 |
commit | 3b8b68d028934761b3b3d6ab8129e7b637fd14fe (patch) | |
tree | 456025203f13a70debd3485182283225435d55df /src | |
parent | 79a80630fd31381e5b339d5b1939aac54a363ca7 (diff) | |
download | qtlocation-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.cpp | 2 |
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) { |