Code

patch by Alvin Penner for bug 415079
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 18 Aug 2009 01:18:17 +0000 (01:18 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 18 Aug 2009 01:18:17 +0000 (01:18 +0000)
src/live_effects/spiro.cpp

index 612348ab8208a3c56918d93e9c5391dbc5d6c530..c734f91ee679dcf9996e9a5cf4cf9da4aca0a244 100644 (file)
@@ -731,6 +731,8 @@ spiro_iter(spiro_seg *s, bandmat *m, int *perm, double *v, int n)
        add_mat_line(m, v, derivs[1][1], -ends[1][1], 1, j, jk0r, jinc, nmat);
        add_mat_line(m, v, derivs[2][1], -ends[1][2], 1, j, jk1r, jinc, nmat);
        add_mat_line(m, v, derivs[3][1], -ends[1][3], 1, j, jk2r, jinc, nmat);
+       v[jthl] = mod_2pi(v[jthl]);
+       v[jthr] = mod_2pi(v[jthr]);
        j += jinc;
     }
     if (cyclic) {