diff options
Diffstat (limited to 'liblogdiag/ld-diagram-view.c')
-rw-r--r-- | liblogdiag/ld-diagram-view.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/liblogdiag/ld-diagram-view.c b/liblogdiag/ld-diagram-view.c index 3ff7599..5905388 100644 --- a/liblogdiag/ld-diagram-view.c +++ b/liblogdiag/ld-diagram-view.c @@ -1315,7 +1315,7 @@ point_to_line_segment_distance /* The projection is beyond the line segment. */ if (u < 0.) return ld_point_distance (point, p1->x, p1->y); - else if (u > 1.) + if (u > 1.) return ld_point_distance (point, p2->x, p2->y); /* The projection is on the line segment. */ |