Code

no need to use accessors here
authormental <mental@users.sourceforge.net>
Fri, 9 Mar 2007 01:38:19 +0000 (01:38 +0000)
committermental <mental@users.sourceforge.net>
Fri, 9 Mar 2007 01:38:19 +0000 (01:38 +0000)
src/libnr/nr-rect.cpp

index 3ffe06dc857ed03279abeed5631d9bd81464e63f..9047e4e1c53faa2762b0bffe5b22aeea695800df 100644 (file)
@@ -290,8 +290,8 @@ Maybe<Rect> intersection(Maybe<Rect const &> a, Maybe<Rect const &> b) {
     } else {
         Rect r;
         for ( int i=0 ; i < 2 ; i++ ) {
-            r._min[i] = MAX(a->min()[i], b->min()[i]);
-            r._max[i] = MIN(a->max()[i], b->max()[i]);
+            r._min[i] = MAX(a->_min[i], b->_min[i]);
+            r._max[i] = MIN(a->_max[i], b->_max[i]);
             if ( r._min[i] > r._max[i] ) {
                return Nothing();
             }