From 0e6fc09134c0c39016f681802918b92db2ab2155 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 2 Oct 2010 09:05:46 +0200 Subject: [PATCH] [smooth] Fix splitting of cubics for negative values. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported by Róbert Márki ; see http://lists.gnu.org/archive/html/freetype/2010-09/msg00019.html. * src/smooth/ftgrays.c (gray_render_cubic): Fix thinko. --- ChangeLog | 9 +++++++++ src/smooth/ftgrays.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0ab014ddc..a9318a099 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2010-10-02 Werner Lemberg + + [smooth] Fix splitting of cubics for negative values. + + Reported by Róbert Márki ; 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 Fix Savannah bug #31040. diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c index 4b3690a0d..17d172f68 100644 --- a/src/smooth/ftgrays.c +++ b/src/smooth/ftgrays.c @@ -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 */