Commits

Barry Schwartz committed e5cc37e

Added the Inkscape stability patch from sourceforge.net.

  • Participants
  • Parent commits 6f449f3

Comments (0)

Files changed (2)

File inkscape-stability-patch

+# HG changeset patch
+# Parent b6493f864768d478911e7b7f6b2c2c9f6d1a74e0
+
+diff -r b6493f864768 spiro.c
+--- a/spiro.c	Tue Aug 16 18:04:37 2011 -0500
++++ b/spiro.c	Tue Aug 16 20:21:01 2011 -0500
+@@ -731,6 +731,10 @@
+ 	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);
++	if (jthl >= 0)
++	    v[jthl] = mod_2pi(v[jthl]);
++	if (jthr >= 0)
++	    v[jthr] = mod_2pi(v[jthr]);
+ 	j += jinc;
+     }
+     if (cyclic) {
+@@ -774,6 +778,7 @@
+ 	    s[i].ks[k] += dk;
+ 	    norm += dk * dk;
+ 	}
++	s[i].ks[0] = 2 * mod_2pi(s[i].ks[0] / 2.);
+     }
+     return norm;
+ }
 pkg-config
+inkscape-stability-patch