summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f76d923)
raw | patch | inline | side by side (parent: f76d923)
author | mental <mental@users.sourceforge.net> | |
Sun, 11 Mar 2007 23:12:38 +0000 (23:12 +0000) | ||
committer | mental <mental@users.sourceforge.net> | |
Sun, 11 Mar 2007 23:12:38 +0000 (23:12 +0000) |
src/libnr/nr-rect.cpp | patch | blob | history |
diff --git a/src/libnr/nr-rect.cpp b/src/libnr/nr-rect.cpp
index a9487045a11b05a4a4b52c69c62eb184430d7e49..d4ba14e1aabb309affe52c70ff2ed705fb6eef56 100644 (file)
--- a/src/libnr/nr-rect.cpp
+++ b/src/libnr/nr-rect.cpp
: _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 */