diff options
author | falkTX <falktx@gmail.com> | 2019-01-12 20:03:51 +0100 |
---|---|---|
committer | falkTX <falktx@gmail.com> | 2019-01-12 20:03:51 +0100 |
commit | 1f1302c319c8a0543e48b84da3918b605712730c (patch) | |
tree | 9cf4dc3b5c3afb7b79df73fedf7104187551b5a1 | |
parent | 1fdf9128b4da65f4fbb49573b3ed3d3f3edb61b2 (diff) |
Fix Size::isValid() check
Signed-off-by: falkTX <falktx@gmail.com>
-rw-r--r-- | dgl/src/Geometry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dgl/src/Geometry.cpp b/dgl/src/Geometry.cpp index 7ee3e8fc..d133985f 100644 --- 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> |