diff options
| author | MenTaLguY <mental@rydia.net> | 2007-03-04 19:06:59 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-03-04 19:06:59 +0000 |
| commit | 4b6a319dd5cff28fcf9d075cadbfdb4cc247c937 (patch) | |
| tree | 84ad3a3b5fe2cdf9dd3e3221acdefcfae6570531 /src/libnr/nr-rect.cpp | |
| parent | remove remaining use of assume in nr-rect.cpp (diff) | |
| download | inkscape-4b6a319dd5cff28fcf9d075cadbfdb4cc247c937.tar.gz inkscape-4b6a319dd5cff28fcf9d075cadbfdb4cc247c937.zip | |
return plain rect for union in all situations where a plain rect is given
(bzr r2542)
Diffstat (limited to 'src/libnr/nr-rect.cpp')
| -rw-r--r-- | src/libnr/nr-rect.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libnr/nr-rect.cpp b/src/libnr/nr-rect.cpp index c681783c7..76d7fff8d 100644 --- a/src/libnr/nr-rect.cpp +++ b/src/libnr/nr-rect.cpp @@ -276,16 +276,6 @@ Maybe<Rect> Rect::intersection(Maybe<Rect> const &a, Maybe<Rect> const &b) { } } -Maybe<Rect> Rect::union_bounds(Maybe<Rect> const &a, Maybe<Rect> const &b) { - if (a) { - return b; - } else if (b) { - return a; - } else { - return union_bounds(*a, *b); - } -} - /** returns the smallest rectangle containing both rectangles */ Rect Rect::union_bounds(Rect const &a, Rect const &b) { Rect r; |
