summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-03-24 15:19:39 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-03-24 15:19:39 +0100
commit8b573f9fa29b724206c9ec0592525421d3e273c8 (patch)
tree0383c56028e11e8c15b1b647f100d204e2e3c0d9 /src
parent84ea95988c2625646da407fcc25d52305f6115ab (diff)
downloadqtlocation-mapboxgl-8b573f9fa29b724206c9ec0592525421d3e273c8.tar.gz
fix glyphs that have no pixels but an advance (e.g. spaces)
Diffstat (limited to 'src')
-rw-r--r--src/geometry/glyph_atlas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/geometry/glyph_atlas.cpp b/src/geometry/glyph_atlas.cpp
index df62ced8b1..f5eb59f567 100644
--- a/src/geometry/glyph_atlas.cpp
+++ b/src/geometry/glyph_atlas.cpp
@@ -39,7 +39,7 @@ Rect<uint16_t> GlyphAtlas::addGlyph(uint64_t tile_id, const std::string& face_na
}
// The glyph bitmap has zero width.
- if (!glyph.metrics.width) {
+ if (!glyph.bitmap.size()) {
return Rect<uint16_t>{ 0, 0, 0, 0 };
}