From 515aa35ff30dbe8a84bd0941e2d5f49afba13814 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 13 Apr 2012 23:47:42 +0200 Subject: 2geom fix (bzr r11240) --- src/2geom/sbasis.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/2geom/sbasis.cpp') diff --git a/src/2geom/sbasis.cpp b/src/2geom/sbasis.cpp index 6ba644b14..b56e03c74 100644 --- a/src/2geom/sbasis.cpp +++ b/src/2geom/sbasis.cpp @@ -643,9 +643,11 @@ SBasis compose_inverse(SBasis const &f, SBasis const &g, unsigned order, double Pk=Pk*sg; Qk=Qk*sg; - Pk.truncate(order); - Qk.truncate(order); - r.truncate(order); + + Pk.resize(order,Linear(0.)); // truncates if too high order, expands with zeros if too low + Qk.resize(order,Linear(0.)); + r.resize(order,Linear(0.)); + } result.normalize(); return result; -- cgit v1.2.3