Browse Source

Fix Size::isValid() check

Signed-off-by: falkTX <falktx@gmail.com>
pull/132/head
falkTX 5 years ago
parent
commit
1503c4eccb
Signed by: falkTX <falktx@gmail.com> GPG Key ID: 2D3445A829213837
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      dgl/src/Geometry.cpp

+ 1
- 1
dgl/src/Geometry.cpp View File

@@ -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>


Loading…
Cancel
Save