Code

Merge from fe-moved
[inkscape.git] / src / 2geom / sbasis.cpp
index 2619da594757d755f3751332db91529bc7e0f241..0bd672c15f7b365af9d26503081b8da85101afb1 100644 (file)
@@ -43,7 +43,7 @@ namespace Geom{
  \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()));
 }
 
@@ -212,7 +212,7 @@ SBasis shift(SBasis const &a, int sh) {
 */
 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);
     }