Code

fix build
authorjohanengelen <johanengelen@users.sourceforge.net>
Thu, 8 Jan 2009 12:13:12 +0000 (12:13 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Thu, 8 Jan 2009 12:13:12 +0000 (12:13 +0000)
src/2geom/poly.cpp
src/pencil-context.cpp

index 9dbfc0967d5ffedce1ffe1c2028f6f52e6b8c770..d8b379557f154b812dd151dd62d3a50df3ac73e3 100644 (file)
@@ -1,5 +1,6 @@
 #include <2geom/poly.h>
 
+#define HAVE_GSL
 #ifdef HAVE_GSL
 #include <gsl/gsl_poly.h>
 #endif
index 56a479f38201da2de5dd72a13282f9e6af32688d..d089146b808171f016d4ba2ca59adba64fa7de8f 100644 (file)
@@ -824,7 +824,7 @@ sketch_interpolate(SPPencilContext *pc)
             } else {
                 t = 0.5;
             }
-            pc->sketch_interpolation = Geom::lerp(fit_pwd2, pc->sketch_interpolation, t);
+            pc->sketch_interpolation = Geom::lerp(t, fit_pwd2, pc->sketch_interpolation);
         } else {
             pc->sketch_interpolation = fit_pwd2;
         }