summaryrefslogtreecommitdiff
path: root/include/llmr/util/rect.hpp
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 /include/llmr/util/rect.hpp
parent84ea95988c2625646da407fcc25d52305f6115ab (diff)
downloadqtlocation-mapboxgl-8b573f9fa29b724206c9ec0592525421d3e273c8.tar.gz
fix glyphs that have no pixels but an advance (e.g. spaces)
Diffstat (limited to 'include/llmr/util/rect.hpp')
-rw-r--r--include/llmr/util/rect.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llmr/util/rect.hpp b/include/llmr/util/rect.hpp
index 025f3a9cbb..56bab2c9c9 100644
--- a/include/llmr/util/rect.hpp
+++ b/include/llmr/util/rect.hpp
@@ -9,7 +9,7 @@ struct Rect {
T x = 0, y = 0;
T w = 0, h = 0;
- operator bool() const { return w == 0 && h == 0; }
+ operator bool() const { return w == 0 || h == 0; }
};
}