From 0108f004f17a699d8edb30fc3cc7f082d81ee03e Mon Sep 17 00:00:00 2001 From: hkrish Date: Sun, 21 Apr 2013 14:57:29 +0200 Subject: [PATCH] Don't create handles if curves are linear --- Boolean.js | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/Boolean.js b/Boolean.js index 9119e53d..c444899d 100644 --- a/Boolean.js +++ b/Boolean.js @@ -307,6 +307,7 @@ for (k = 0, l=loc.length; k= 0; i--) { if( graph[i].intersections.length ){ - var ix = graph[i].intersections; + ix = graph[i].intersections; // Sort the intersections if there is more than one if( graph[i].intersections.length > 1 ){ ix.sort( ixSort ); } // Remove the graph link, this link has to be split and replaced with the splits lnk = graph.splice( i, 1 )[0]; for (j =0, l=ix.length; j