summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2010-10-02 09:05:46 +0200
committerWerner Lemberg <wl@gnu.org>2010-10-02 09:05:46 +0200
commit0e6fc09134c0c39016f681802918b92db2ab2155 (patch)
treea06e390efbe7eba5577335ee05d365fa8de1a241 /src
parent5edc2f339a84348effeae8db7d32fe3a96ff6d84 (diff)
[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.
Diffstat (limited to 'src')
-rw-r--r--src/smooth/ftgrays.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index 4b3690a0..17d172f6 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 */