mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-02 21:18:05 +02:00
stroke: Fix typos
The condition was comparing out with itself (always resulting in a true result) instead of out and in. Pointed out by Clang as "idempotent operation".
This commit is contained in:
parent
c64ec4e49c
commit
f9aa85f5fe
2 changed files with 4 additions and 4 deletions
|
|
@ -440,7 +440,7 @@ outer_close (struct stroker *stroker,
|
|||
int clockwise;
|
||||
|
||||
if (in->cw.x == out->cw.x && in->cw.y == out->cw.y &&
|
||||
in->ccw.x == out->ccw.x && out->ccw.y == out->ccw.y)
|
||||
in->ccw.x == out->ccw.x && in->ccw.y == out->ccw.y)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
@ -635,7 +635,7 @@ outer_join (struct stroker *stroker,
|
|||
struct stroke_contour *outer;
|
||||
|
||||
if (in->cw.x == out->cw.x && in->cw.y == out->cw.y &&
|
||||
in->ccw.x == out->ccw.x && out->ccw.y == out->ccw.y)
|
||||
in->ccw.x == out->ccw.x && in->ccw.y == out->ccw.y)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ outer_close (struct stroker *stroker,
|
|||
int clockwise;
|
||||
|
||||
if (in->cw.x == out->cw.x && in->cw.y == out->cw.y &&
|
||||
in->ccw.x == out->ccw.x && out->ccw.y == out->ccw.y)
|
||||
in->ccw.x == out->ccw.x && in->ccw.y == out->ccw.y)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
@ -422,7 +422,7 @@ outer_join (struct stroker *stroker,
|
|||
const cairo_point_t *inpt, *outpt;
|
||||
|
||||
if (in->cw.x == out->cw.x && in->cw.y == out->cw.y &&
|
||||
in->ccw.x == out->ccw.x && out->ccw.y == out->ccw.y)
|
||||
in->ccw.x == out->ccw.x && in->ccw.y == out->ccw.y)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue