diff --git a/src/Fun.jl b/src/Fun.jl index abb676ce..a729e864 100644 --- a/src/Fun.jl +++ b/src/Fun.jl @@ -486,6 +486,7 @@ pad(f::Fun,n::Integer) = Fun(f.space,pad(f.coefficients,n)) function chop!(sp::UnivariateSpace,cfs,tol::Real) n=standardchoplength(cfs,tol) + n=max(1,n) # empty coeffs vector causes all sorts of problems resize!(cfs,n) cfs end