From e5aa4d70cd7b39302ddf1ec4df240a14accfb474 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Mon, 3 Apr 2017 17:07:17 +0300 Subject: [core] Updated Size::isEmpty and TransformState::valid checks --- include/mbgl/util/image.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/mbgl/util/image.hpp') 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 -- cgit v1.2.1