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.
This commit is contained in:
Werner Almesberger 2015-01-28 14:01:58 -03:00
parent 1f04d6490a
commit dddb035255
1 changed files with 0 additions and 1 deletions

View File

@ -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;
}