summaryrefslogtreecommitdiffstats
path: root/src/2geom/sbasis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/2geom/sbasis.cpp')
-rw-r--r--src/2geom/sbasis.cpp8
1 files changed, 5 insertions, 3 deletions
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;