From 13e73fa386cd7843d7079ec7c162ef43d15097c4 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Thu, 30 Aug 2007 18:32:36 +0000 Subject: Update to 2Geom rev. 1113 (bzr r3622) --- src/2geom/sbasis-roots.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/2geom/sbasis-roots.cpp') diff --git a/src/2geom/sbasis-roots.cpp b/src/2geom/sbasis-roots.cpp index ad2dfbda4..c4ef3c16d 100644 --- a/src/2geom/sbasis-roots.cpp +++ b/src/2geom/sbasis-roots.cpp @@ -68,7 +68,7 @@ Interval bounds_fast(const SBasis &sb, int order) { double a=sb[j][0]; double b=sb[j][1]; - double t, v; + double v, t = 0; v = res[0]; if (v<0) t = ((b-a)/v+1)*0.5; if (v>=0 || t<0 || t>1) { @@ -95,7 +95,7 @@ Interval bounds_local(const SBasis &sb, const Interval &i, int order) { double a=sb[j][0]; double b=sb[j][1]; - double t; + double t = 0; if (lo<0) t = ((b-a)/lo+1)*0.5; if (lo>=0 || tt1) { lo = std::min(a*(1-t0)+b*t0+lo*t0*(1-t0),a*(1-t1)+b*t1+lo*t1*(1-t1)); -- cgit v1.2.3