[smooth] Fix splitting of cubics for negative values.

Reported by Róbert Márki <gsmiko@gmail.com>; see
http://lists.gnu.org/archive/html/freetype/2010-09/msg00019.html.

* src/smooth/ftgrays.c (gray_render_cubic): Fix thinko.
This commit is contained in:
Werner Lemberg 2010-10-02 09:05:46 +02:00
parent 5edc2f339a
commit 0e6fc09134
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2010-10-02 Werner Lemberg <wl@gnu.org>
[smooth] Fix splitting of cubics for negative values.
Reported by Róbert Márki <gsmiko@gmail.com>; see
http://lists.gnu.org/archive/html/freetype/2010-09/msg00019.html.
* src/smooth/ftgrays.c (gray_render_cubic): Fix thinko.
2010-10-01 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Fix Savannah bug #31040.

View File

@ -1028,7 +1028,7 @@ typedef ptrdiff_t FT_PtrDist;
if ( y > max )
max = y;
if ( TRUNC( min ) >= ras.max_ey || TRUNC( max ) < 0 )
if ( TRUNC( min ) >= ras.max_ey || TRUNC( max ) < ras.min_ey )
goto Draw;
/* Decide whether to split or draw. See `Rapid Termination */