diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-05-06 12:17:16 +0200 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-05-12 20:46:56 -0700 |
commit | 8dd6da5b5e8c4246b130da9eb1bd967606ae98df (patch) | |
tree | 9d23cf23e8366b270fe086a5f5c94816697d609a /src/mbgl/text/glyph.hpp | |
parent | 76b47e801e631832cc064c76276cfcdc3d9e53e0 (diff) | |
download | qtlocation-mapboxgl-8dd6da5b5e8c4246b130da9eb1bd967606ae98df.tar.gz |
don't implicitly cast to bool since this will make comparisons fails
Diffstat (limited to 'src/mbgl/text/glyph.hpp')
-rw-r--r-- | src/mbgl/text/glyph.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/text/glyph.hpp b/src/mbgl/text/glyph.hpp index 4fbb75fc1e..b0af261cc6 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; |