Code

fix for 2geom change (pointAndDerivative)
authorjohanengelen <johanengelen@users.sourceforge.net>
Tue, 17 Jun 2008 21:03:56 +0000 (21:03 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Tue, 17 Jun 2008 21:03:56 +0000 (21:03 +0000)
src/live_effects/lpe-knot.cpp

index 525cb66d501872af836578ecae2b8d89b54d6072..678bbf8ba070a0aaad8c2b9f69e8f36e5b507fce 100644 (file)
@@ -62,7 +62,7 @@ findShadowedTime(Geom::Path &patha,
     if(curveidx == pathb.size() && timeoncurve == 0) { curveidx--; timeoncurve = 0.99999;}
     assert(curveidx >= 0 && curveidx < pathb.size());
     
-    std::vector<Point> MV = pathb[unsigned(curveidx)].pointAndDerivatives(timeoncurve,2);
+    std::vector<Point> MV = pathb[unsigned(curveidx)].pointAndDerivatives(timeoncurve,1);
     Point T = unit_vector(MV.at(1));
     Point N = T.cw();
     Point A = MV.at(0)-10*width*T, B = MV.at(0)+10*width*T;