diff options
Diffstat (limited to 'include/mbgl/util/image.hpp')
-rw-r--r-- | include/mbgl/util/image.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/util/image.hpp b/include/mbgl/util/image.hpp index 5d1462e7c4..c019bb949c 100644 --- a/include/mbgl/util/image.hpp +++ b/include/mbgl/util/image.hpp @@ -58,7 +58,7 @@ public: } bool valid() const { - return size && data.get() != nullptr; + return !size.isEmpty() && data.get() != nullptr; } template <typename T = Image> |