summaryrefslogtreecommitdiff
path: root/src/text
diff options
context:
space:
mode:
authorEden Halperin <eden@mapbox.com>2014-07-26 09:18:42 -0700
committerEden Halperin <eden@mapbox.com>2014-07-26 09:18:42 -0700
commit7a8a9fb339537a1f3c00b1bfedef05e4b64938ee (patch)
treea9dcc7ab1654fc3c396f60dec56867e0ec907e88 /src/text
parent600e1d8a9e1a388f010b8fdf1f296eadfd2be67e (diff)
downloadqtlocation-mapboxgl-7a8a9fb339537a1f3c00b1bfedef05e4b64938ee.tar.gz
change text-max-angle to accept degrees and convert to radians
Diffstat (limited to 'src/text')
-rw-r--r--src/text/placement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text/placement.cpp b/src/text/placement.cpp
index b278a8bfb8..b15266137b 100644
--- a/src/text/placement.cpp
+++ b/src/text/placement.cpp
@@ -273,7 +273,7 @@ void Placement::addFeature(TextBucket &bucket, const std::vector<Coordinate> &li
GlyphBoxes boxes;
getGlyphs(glyphs, boxes, anchor, info.translate, shaping, face, fontScale, horizontal, line,
- info.max_angle_delta, info.rotate);
+ info.max_angle_delta * (M_PI/180), info.rotate);
PlacementProperty place = collision.place(boxes, anchor, anchor.scale, maxPlacementScale,
info.padding, horizontal, info.always_visible);
if (place) {