commit 1503c4eccb8dbcf46b703f64531764495f372517
parent f080e2d6a4bcf237e987018fa7a823ce61c50a16
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>