From 95053df1e011b4b84c655df24f3e4cb655df501e Mon Sep 17 00:00:00 2001 From: Shaunak Kishore Date: Sun, 13 Sep 2015 14:43:12 -0400 Subject: [PATCH] Add to stroke-extraction black magic --- lib/stroke_extractor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stroke_extractor.js b/lib/stroke_extractor.js index 55f29f2d..802ac734 100644 --- a/lib/stroke_extractor.js +++ b/lib/stroke_extractor.js @@ -349,7 +349,7 @@ function extract_stroke(paths, endpoint_map, bridge_adjacency, log, // Here there be dragons! // TODO(skishore): Document the point of the geometry in this function. function select_bridge(endpoint, options) { - if (options.length === 1) { + if (options.length === 1 && extracted_indices[Point.key(options[0])]) { // Handle star-shaped strokes where one stroke ends at the intersection // of the bridges used by two other strokes. var indices1 = [endpoint.index, options[0]];