Do not try to force dimensions of a rectangle (#12115)

This commit is contained in:
Tulio Leao 2020-07-03 04:28:30 -03:00 committed by GitHub
parent fdef47dc86
commit 99b39f04e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -659,9 +659,6 @@ template<class T> struct RectRange : public CoordsRange<T>
RectRange(const T& leftTop, const T& rightBottom)
: CoordsRange<T>(leftTop, rightBottom)
{
// Make sure it's a rectangle
assert(std::abs(CoordsRange<T>::GetLeft() - CoordsRange<T>::GetRight()) > 0);
assert(std::abs(CoordsRange<T>::GetTop() - CoordsRange<T>::GetBottom()) > 0);
}
};