diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-03-24 15:19:39 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-03-24 15:19:39 +0100 |
commit | 8b573f9fa29b724206c9ec0592525421d3e273c8 (patch) | |
tree | 0383c56028e11e8c15b1b647f100d204e2e3c0d9 /include/llmr/text/glyph.hpp | |
parent | 84ea95988c2625646da407fcc25d52305f6115ab (diff) | |
download | qtlocation-mapboxgl-8b573f9fa29b724206c9ec0592525421d3e273c8.tar.gz |
fix glyphs that have no pixels but an advance (e.g. spaces)
Diffstat (limited to 'include/llmr/text/glyph.hpp')
-rw-r--r-- | include/llmr/text/glyph.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llmr/text/glyph.hpp b/include/llmr/text/glyph.hpp index 09b4ddb5a2..91531e24f3 100644 --- a/include/llmr/text/glyph.hpp +++ b/include/llmr/text/glyph.hpp @@ -30,7 +30,7 @@ struct Glyph { : rect(rect), metrics(metrics) {} operator bool() const { - return !metrics; + return !metrics && !rect; } const Rect<uint16_t> rect; |