From dddb035255894add8d97e1b80052e434ac4ac1b7 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 28 Jan 2015 14:01:58 -0300 Subject: [PATCH] cameo/path.c (path_find_leftmost): continue searching for the smallest coordinate Else, we may find a large X that is still the smallest at that time, but then find a smaller X in some other path and pick the wrong path. --- cameo/path.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cameo/path.c b/cameo/path.c index 6edcc83..886a87b 100644 --- a/cameo/path.c +++ b/cameo/path.c @@ -351,7 +351,6 @@ const struct path *path_find_leftmost(const struct path *path) if (p->x < best_x) { best = path; best_x = p->x; - break; } path = path->next; }