1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2024-12-23 03:22:25 +02:00

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

View File

@ -351,7 +351,6 @@ const struct path *path_find_leftmost(const struct path *path)
if (p->x < best_x) { if (p->x < best_x) {
best = path; best = path;
best_x = p->x; best_x = p->x;
break;
} }
path = path->next; path = path->next;
} }