commit 1f1302c319c8a0543e48b84da3918b605712730c
parent 1fdf9128b4da65f4fbb49573b3ed3d3f3edb61b2
Author: falkTX <falktx@gmail.com>
Date: Sat, 12 Jan 2019 20:03:24 +0100
Fix Size::isValid() check
Signed-off-by: falkTX <falktx@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dgl/src/Geometry.cpp b/dgl/src/Geometry.cpp
@@ -237,7 +237,7 @@ bool Size<T>::isNotNull() const noexcept
template<typename T>
bool Size<T>::isValid() const noexcept
{
- return fWidth > 1 && fHeight > 1;
+ return fWidth > 0 && fHeight > 0;
}
template<typename T>