[smooth] Fix segfault caused by previous commit.

* src/smooth/ftgrays.c (gray_set_cell): Always compute
`ras.invalid'.
This commit is contained in:
Werner Lemberg 2013-07-16 15:25:24 +02:00
parent 89929ec6b9
commit 9a7951d99b
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2013-07-16 Werner Lemberg <wl@gnu.org>
[smooth] Fix segfault caused by previous commit.
* src/smooth/ftgrays.c (gray_set_cell): Always compute
`ras.invalid'.
2013-07-16 David Turner <digit@google.com>
[smooth] Improve performance.

View File

@ -310,7 +310,7 @@ typedef ptrdiff_t FT_PtrDist;
#endif
/* Compute `divident / divisor' and return both its quotient and */
/* Compute `dividend / divisor' and return both its quotient and */
/* remainder, cast to a specific type. This macro also ensures that */
/* the remainder is always positive. */
#define FT_DIV_MOD( type, dividend, divisor, quotient, remainder ) \
@ -633,10 +633,10 @@ typedef ptrdiff_t FT_PtrDist;
ras.cover = 0;
ras.ex = ex;
ras.ey = ey;
ras.invalid = ( (unsigned)ey >= (unsigned)ras.count_ey ||
ex >= ras.count_ex );
}
ras.invalid = ( (unsigned)ey >= (unsigned)ras.count_ey ||
ex >= ras.count_ex );
}