diff options
| author | MenTaLguY <mental@rydia.net> | 2007-03-18 23:18:32 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-03-18 23:18:32 +0000 |
| commit | 32f91f33a10adf5f8ea7cb73ee922b608de22549 (patch) | |
| tree | 2c858bca74ec5f099e3c55926f9e0a24d0050f93 /src/libnr/nr-rect.cpp | |
| parent | Pedro::pedrogui is not the same as the one in jabber_whiteboard (diff) | |
| download | inkscape-32f91f33a10adf5f8ea7cb73ee922b608de22549.tar.gz inkscape-32f91f33a10adf5f8ea7cb73ee922b608de22549.zip | |
revert NRRect/NRRectL conversion constructors for NR::Rect, since they
cannot correctly deal with "nullary" NRRect -- the correct path is to
convert NRRect to Maybe<Rect>
(bzr r2703)
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 d34c548ad..dbb54b9fd 100644 --- a/src/libnr/nr-rect.cpp +++ b/src/libnr/nr-rect.cpp @@ -247,16 +247,6 @@ Rect::Rect(const Point &p0, const Point &p1) _max(std::max(p0[X], p1[X]), std::max(p0[Y], p1[Y])) {} -Rect::Rect(NRRect *r) - : _min(r->x0, r->y0), - _max(r->x1, r->y1) -{} - -Rect::Rect(NRRectL *r) - : _min(r->x0, r->y0), - _max(r->x1, r->y1) -{} - /** returns the four corners of the rectangle in the correct winding order */ Point Rect::corner(unsigned i) const { switch (i % 4) { |
