summaryrefslogtreecommitdiff
path: root/src/mbgl/text/glyph.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/text/glyph.hpp')
-rw-r--r--src/mbgl/text/glyph.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/text/glyph.hpp b/src/mbgl/text/glyph.hpp
index bc46042d2a..03016f0fbf 100644
--- a/src/mbgl/text/glyph.hpp
+++ b/src/mbgl/text/glyph.hpp
@@ -35,7 +35,7 @@ struct Glyph {
: rect(rect_), metrics(metrics_) {}
operator bool() const {
- return metrics || rect;
+ return metrics || rect.hasArea();
}
const Rect<uint16_t> rect;