diff options
| author | MenTaLguY <mental@rydia.net> | 2007-03-11 23:12:38 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-03-11 23:12:38 +0000 |
| commit | eeb45b426d0d0dd35c9d2005084a9213c7550667 (patch) | |
| tree | b4593f15cbeca4a901595ed8836835ef3b817822 /src/libnr/nr-rect.cpp | |
| parent | eliminate the use of sodipodi:docbase (use doc->base instead); emit warning w... (diff) | |
| download | inkscape-eeb45b426d0d0dd35c9d2005084a9213c7550667.tar.gz inkscape-eeb45b426d0d0dd35c9d2005084a9213c7550667.zip | |
disable empty enforcement for now
(bzr r2611)
Diffstat (limited to 'src/libnr/nr-rect.cpp')
| -rw-r--r-- | src/libnr/nr-rect.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libnr/nr-rect.cpp b/src/libnr/nr-rect.cpp index a9487045a..d4ba14e1a 100644 --- a/src/libnr/nr-rect.cpp +++ b/src/libnr/nr-rect.cpp @@ -246,9 +246,11 @@ 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 */ |
