diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-21 13:05:10 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-21 14:05:40 -0700 |
commit | b2beeda50bbd48fecad957d194dd5b40c72eb9c7 (patch) | |
tree | 4e13e0281222e79da20ad37eeea9cc468cdf3c32 /src/mbgl/text/shaping.cpp | |
parent | 2ea450205d8b89db28f7160365b73d26bf4b8812 (diff) | |
download | qtlocation-mapboxgl-b2beeda50bbd48fecad957d194dd5b40c72eb9c7.tar.gz |
[core] Adopt a strict naming convention for style properties
This will allow code to be generated from the style specification.
Diffstat (limited to 'src/mbgl/text/shaping.cpp')
-rw-r--r-- | src/mbgl/text/shaping.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/text/shaping.cpp b/src/mbgl/text/shaping.cpp index 342a27a66f..9ad3c3e71d 100644 --- a/src/mbgl/text/shaping.cpp +++ b/src/mbgl/text/shaping.cpp @@ -4,8 +4,8 @@ namespace mbgl { PositionedIcon shapeIcon(const SpriteAtlasElement& image, const SymbolLayoutProperties& layout) { - float dx = layout.icon.offset.value[0]; - float dy = layout.icon.offset.value[1]; + float dx = layout.iconOffset.value[0]; + float dy = layout.iconOffset.value[1]; float x1 = dx - image.spriteImage->getWidth() / 2.0f; float x2 = x1 + image.spriteImage->getWidth(); float y1 = dy - image.spriteImage->getHeight() / 2.0f; |