summaryrefslogtreecommitdiffstats
path: root/src/libnr/nr-rect.h
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2007-03-04 19:06:46 +0000
committermental <mental@users.sourceforge.net>2007-03-04 19:06:46 +0000
commit72289096ed747e793ca5a01200560a0ba6decb0e (patch)
tree9afe77aeaa91058fbde951b4199a771f4d086929 /src/libnr/nr-rect.h
parentcommunicate bbox type via flags for now (diff)
downloadinkscape-72289096ed747e793ca5a01200560a0ba6decb0e.tar.gz
inkscape-72289096ed747e793ca5a01200560a0ba6decb0e.zip
return plain rect if both union arguments are also plain rects
(bzr r2540)
Diffstat (limited to 'src/libnr/nr-rect.h')
-rw-r--r--src/libnr/nr-rect.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libnr/nr-rect.h b/src/libnr/nr-rect.h
index 91431d0e6..b6918c493 100644
--- a/src/libnr/nr-rect.h
+++ b/src/libnr/nr-rect.h
@@ -185,6 +185,7 @@ public:
/** Returns the smallest rectangle that encloses both rectangles. */
static Maybe<Rect> union_bounds(Maybe<Rect> const &a, Maybe<Rect> const &b);
+ static Rect union_bounds(Rect const &a, Rect const &b);
/** Scales the rect by s, with origin at 0, 0 */
inline Rect operator*(double const s) const {