Code

patch from 417179 by Alvin
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 24 Aug 2009 19:56:23 +0000 (19:56 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 24 Aug 2009 19:56:23 +0000 (19:56 +0000)
src/live_effects/spiro.cpp

index c734f91ee679dcf9996e9a5cf4cf9da4aca0a244..4aad25f08f698f9753d45f1d7ecd53dcc4aa7d0d 100644 (file)
@@ -773,6 +773,7 @@ spiro_iter(spiro_seg *s, bandmat *m, int *perm, double *v, int n)
            s[i].ks[k] += dk;
            norm += dk * dk;
        }
+        s[i].ks[0] = 2.0*mod_2pi(s[i].ks[0]/2.0);
     }
     return norm;
 }