summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYoung Hahn <young@mapbox.com>2016-06-11 12:37:28 -0400
committerGitHub <noreply@github.com>2016-06-11 12:37:28 -0400
commit0dee9f81f34ee3487af6036d8ce961dcaa35a0b8 (patch)
tree7070dd494841fd991cee6bbb7a1564390ebb87c4 /src
parentecd4aa14397ed081a521d8412557724e52f277f3 (diff)
downloadqtlocation-mapboxgl-0dee9f81f34ee3487af6036d8ce961dcaa35a0b8.tar.gz
Don't apply textRotate twice. (#5321)
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/text/quads.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/text/quads.cpp b/src/mbgl/text/quads.cpp
index eadfe5c1fd..2a05082b04 100644
--- a/src/mbgl/text/quads.cpp
+++ b/src/mbgl/text/quads.cpp
@@ -202,8 +202,8 @@ SymbolQuads getGlyphQuads(Anchor& anchor, const Shaping& shapedText,
// Prevent label from extending past the end of the line
const float glyphMinScale = std::max(instance.minScale, anchor.scale);
- const float anchorAngle = std::fmod((anchor.angle + textRotate + instance.offset + 2 * M_PI), (2 * M_PI));
- const float glyphAngle = std::fmod((instance.angle + textRotate + instance.offset + 2 * M_PI), (2 * M_PI));
+ const float anchorAngle = std::fmod((anchor.angle + instance.offset + 2 * M_PI), (2 * M_PI));
+ const float glyphAngle = std::fmod((instance.angle + instance.offset + 2 * M_PI), (2 * M_PI));
quads.emplace_back(tl, tr, bl, br, rect, anchorAngle, glyphAngle, instance.anchorPoint, glyphMinScale, instance.maxScale);
}