From 257feedb11b8dd66267acceba30e4c50992c04d5 Mon Sep 17 00:00:00 2001 From: mental Date: Sun, 18 Mar 2007 23:22:09 +0000 Subject: [PATCH] correct intersection since we allow empty rects again --- 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 dbb54b9fd..72bced37b 100644 --- a/src/libnr/nr-rect.cpp +++ b/src/libnr/nr-rect.cpp @@ -304,7 +304,7 @@ Maybe intersection(Maybe const & a, Maybe const & 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