diff --git a/src/2geom/sbasis.cpp b/src/2geom/sbasis.cpp
index 2619da594757d755f3751332db91529bc7e0f241..0bd672c15f7b365af9d26503081b8da85101afb1 100644 (file)
--- a/src/2geom/sbasis.cpp
+++ b/src/2geom/sbasis.cpp
\returns the largest possible error this truncation could give
*/
double SBasis::tailError(unsigned tail) const {
- Interval bs = bounds_fast(*this, tail);
+ Interval bs = *bounds_fast(*this, tail);
return std::max(fabs(bs.min()),fabs(bs.max()));
}
*/
SBasis shift(Linear const &a, int sh) {
SBasis c;
- if(sh > 0) {
+ if(sh >= 0) {
c.insert(c.begin(), sh, Linear(0,0));
c.push_back(a);
}