diff options
| author | MenTaLguY <mental@rydia.net> | 2007-03-17 06:51:35 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-03-17 06:51:35 +0000 |
| commit | 4132345ba756f54ede51dfb00f4819bb0a939d0d (patch) | |
| tree | 9539073cbc4fd5c6f2deb66323d15311447bd7ca /src/libnr/nr-rect.cpp | |
| parent | move creating style after the signals are set up, so that style does not miss... (diff) | |
| download | inkscape-4132345ba756f54ede51dfb00f4819bb0a939d0d.tar.gz inkscape-4132345ba756f54ede51dfb00f4819bb0a939d0d.zip | |
clean up rect mess a bit before start working on other stuff
(bzr r2678)
Diffstat (limited to 'src/libnr/nr-rect.cpp')
| -rw-r--r-- | src/libnr/nr-rect.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libnr/nr-rect.cpp b/src/libnr/nr-rect.cpp index d4ba14e1a..f3eb498af 100644 --- a/src/libnr/nr-rect.cpp +++ b/src/libnr/nr-rect.cpp @@ -245,13 +245,7 @@ namespace NR { Rect::Rect(const Point &p0, const Point &p1) : _min(std::min(p0[X], p1[X]), std::min(p0[Y], p1[Y])), _max(std::max(p0[X], p1[X]), std::max(p0[Y], p1[Y])) -{ - if (0) { - if ( _min[X] == _max[X] || _min[Y] == _max[Y] ) { - throw EmptyRectangle(); - } - } -} +{} /** returns the four corners of the rectangle in the correct winding order */ Point Rect::corner(unsigned i) const { |
