From bb610d05a0e6ef2ab0cdaa98e909f24ad4c54902 Mon Sep 17 00:00:00 2001 From: mental Date: Fri, 9 Mar 2007 03:57:40 +0000 Subject: [PATCH] do not return empty intersections any longer --- src/libnr/nr-rect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libnr/nr-rect.cpp b/src/libnr/nr-rect.cpp index 848d9b4f9..fd291218b 100644 --- a/src/libnr/nr-rect.cpp +++ b/src/libnr/nr-rect.cpp @@ -293,7 +293,7 @@ Maybe intersection(Maybe a, Maybe b) { for ( int i=0 ; i < 2 ; i++ ) { r._min[i] = std::max(a->_min[i], b->_min[i]); r._max[i] = std::min(a->_max[i], b->_max[i]); - if ( r._min[i] > r._max[i] ) { + if ( r._min[i] >= r._max[i] ) { return Nothing(); } } -- 2.30.2