From: johanengelen Date: Sat, 13 Dec 2008 20:28:32 +0000 (+0000) Subject: fix LPE Sketch with new 2geom X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b12c58eb378e0b212277c61471f971e2a97c6156;p=inkscape.git fix LPE Sketch with new 2geom --- diff --git a/src/live_effects/lpe-sketch.cpp b/src/live_effects/lpe-sketch.cpp index 1fe4ba525..97bd8a49d 100644 --- a/src/live_effects/lpe-sketch.cpp +++ b/src/live_effects/lpe-sketch.cpp @@ -151,13 +151,13 @@ LPESketch::computePerturbation (double s0, double s1){ //compute howmany deg 3 sbasis to concat according to frequency. unsigned count = unsigned((s1-s0)/strokelength*tremble_frequency)+1; for (unsigned i=0; i perturb = D2(); + D2 perturb = D2(SBasis(2*count, Linear()), SBasis(2*count, Linear())); for (unsigned dim=0; dim<2; dim++){ B[dim] = offset[dim] + 2*tremble_size-tremble_size.get_value(); - perturb[dim].push_back(Linear(A[dim],B[dim])); + perturb[dim][2*i] = Linear(A[dim],B[dim]); dA[dim] = dA[dim]-B[dim]+A[dim]; dB[dim] = 2*tremble_size-tremble_size.get_value(); - perturb[dim].push_back(Linear(dA[dim],dB[dim])); + perturb[dim][2*i+1] = Linear(dA[dim],dB[dim]); } A = B; dA = B-A-dB;