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:
Andrea Canciani 2011-11-02 13:10:18 +01:00
parent c64ec4e49c
commit f9aa85f5fe
2 changed files with 4 additions and 4 deletions

View file

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

View file

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