diff options
author | Will Snook <wsnook@users.noreply.github.com> | 2014-05-13 13:07:39 -0600 |
---|---|---|
committer | Will Snook <wsnook@users.noreply.github.com> | 2014-05-13 13:07:39 -0600 |
commit | 8d2627e5ef9daad300804381d06d14491a8eb12f (patch) | |
tree | cd6bd877c4fa5a8c9eab6009ed05b6f83621c591 /src | |
parent | c8a3b916b3ec9e658ef4d3cffd6b47bf94eb578f (diff) | |
download | qtlocation-mapboxgl-8d2627e5ef9daad300804381d06d14491a8eb12f.tar.gz |
Fix for #195, native maxAngleDelta
Diffstat (limited to 'src')
-rw-r--r-- | src/text/placement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text/placement.cpp b/src/text/placement.cpp index 15cb787511..95bfa6bb04 100644 --- a/src/text/placement.cpp +++ b/src/text/placement.cpp @@ -109,7 +109,7 @@ void getSegmentGlyphs(std::back_insert_iterator<GlyphInstances> glyphs, // Don't place around sharp corners float angleDiff = fmod((angle - prevAngle), (2.0f * M_PI)); - if (prevAngle && angleDiff > maxAngleDelta) { + if (prevAngle && fabs(angleDiff) > maxAngleDelta) { anchor.scale = prevscale; break; } |