summaryrefslogtreecommitdiff
path: root/src/mbgl/text
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2017-09-14 10:03:39 -0700
committerChris Loer <chris.loer@mapbox.com>2017-09-18 11:59:21 -0700
commit975d6b1698609a1adad3dcbe40c76c831be913d3 (patch)
tree648bdfec09d7e99b92fbf71121f01cfa3d0d594a /src/mbgl/text
parent00dde25022840a86bfbdeea77c9f1824c10134d3 (diff)
downloadqtlocation-mapboxgl-975d6b1698609a1adad3dcbe40c76c831be913d3.tar.gz
[core] Don't redo placement for zoom changes at low pitch.
Fixes issue #9996 Port of GL-JS #5284
Diffstat (limited to 'src/mbgl/text')
-rw-r--r--src/mbgl/text/placement_config.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/text/placement_config.hpp b/src/mbgl/text/placement_config.hpp
index 1e1279341d..48b24b5f41 100644
--- a/src/mbgl/text/placement_config.hpp
+++ b/src/mbgl/text/placement_config.hpp
@@ -13,9 +13,9 @@ public:
bool operator==(const PlacementConfig& rhs) const {
return angle == rhs.angle &&
pitch == rhs.pitch &&
- cameraToCenterDistance == rhs.cameraToCenterDistance &&
- (pitch * util::RAD2DEG < 25 || cameraToTileDistance == rhs.cameraToTileDistance) &&
- debug == rhs.debug;
+ debug == rhs.debug &&
+ ((pitch * util::RAD2DEG < 25) ||
+ (cameraToCenterDistance == rhs.cameraToCenterDistance && cameraToTileDistance == rhs.cameraToTileDistance));
}
bool operator!=(const PlacementConfig& rhs) const {