mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-22 23:04:16 +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:
parent
1f04d6490a
commit
dddb035255
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user