From: mental Date: Fri, 9 Mar 2007 03:57:40 +0000 (+0000) Subject: do not return empty intersections any longer X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bb610d05a0e6ef2ab0cdaa98e909f24ad4c54902;p=inkscape.git do not return empty intersections any longer --- 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(); } }