summaryrefslogtreecommitdiffstats
path: root/src/2geom/sbasis-roots.cpp
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/sbasis-roots.cpp
parentimproving SVG Fonts UI (diff)
downloadinkscape-680344945f84364fbbcbe4d4a353a52d4a724653.tar.gz
inkscape-680344945f84364fbbcbe4d4a353a52d4a724653.zip
update to latest 2geom (rev1497)
(bzr r6332)
Diffstat (limited to 'src/2geom/sbasis-roots.cpp')
-rw-r--r--src/2geom/sbasis-roots.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/2geom/sbasis-roots.cpp b/src/2geom/sbasis-roots.cpp
index 30f5fb22f..861baf76d 100644
--- a/src/2geom/sbasis-roots.cpp
+++ b/src/2geom/sbasis-roots.cpp
@@ -62,8 +62,10 @@ Interval bounds_exact(SBasis const &a) {
return result;
}
+// I have no idea how this works, some clever bounding argument by jfb.
Interval bounds_fast(const SBasis &sb, int order) {
- Interval res;
+ Interval res(0,0); // an empty sbasis is 0.
+
for(int j = sb.size()-1; j>=order; j--) {
double a=sb[j][0];
double b=sb[j][1];