summaryrefslogtreecommitdiffstats
path: root/src/2geom/rect.h
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-07-16 21:36:19 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-07-16 21:36:19 +0000
commit680344945f84364fbbcbe4d4a353a52d4a724653 (patch)
tree1e8f541be4d451eff0e58ec6d76e066dd3167086 /src/2geom/rect.h
parentimproving SVG Fonts UI (diff)
downloadinkscape-680344945f84364fbbcbe4d4a353a52d4a724653.tar.gz
inkscape-680344945f84364fbbcbe4d4a353a52d4a724653.zip
update to latest 2geom (rev1497)
(bzr r6332)
Diffstat (limited to 'src/2geom/rect.h')
-rw-r--r--src/2geom/rect.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/2geom/rect.h b/src/2geom/rect.h
index 27a475cf3..a136e91a8 100644
--- a/src/2geom/rect.h
+++ b/src/2geom/rect.h
@@ -55,6 +55,10 @@ class D2<Interval> {
private:
Interval f[2];
public:
+ /* The default constructor creates a rect that contains the point (0,0). Isn't it better to have it be empty?
+ * i.e. f[X] = f[Y] = Interval(); . Don't use Interval(+COORD_HUGE, -COORD_HUGE) !! because the arguments
+ * will be interchanged to Interval(-COORD_HUGE, +COORD_HUGE)!!
+ */
D2<Interval>() { f[X] = f[Y] = Interval(0, 0); }
D2<Interval>(Interval const &a, Interval const &b) {