summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2019-05-07 19:07:11 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2019-05-07 19:07:11 -0400
commit0c6f61ab12963c2a594e1b264388820599050f0e (patch)
tree62e178edd5b6a9ebb9a4e33e09be178833e575d1 /src
parentea7e20fba62717319e088e9e0d776c3b4473eda8 (diff)
downloadfreetype2-0c6f61ab12963c2a594e1b264388820599050f0e.tar.gz
* src/raster/ftraster.c (Draw_Sweep): Unbreak.
Diffstat (limited to 'src')
-rw-r--r--src/raster/ftraster.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/raster/ftraster.c b/src/raster/ftraster.c
index 123c15f17..023b6c1ef 100644
--- a/src/raster/ftraster.c
+++ b/src/raster/ftraster.c
@@ -2776,12 +2776,6 @@
Sort( &draw_left );
Sort( &draw_right );
- if ( !draw_right )
- {
- ras.error = FT_THROW( Invalid );
- return FAILURE;
- }
-
y_change = (Short)ras.sizeBuff[-ras.numTurns--];
y_height = (Short)( y_change - y );
@@ -2794,7 +2788,7 @@
P_Left = draw_left;
P_Right = draw_right;
- while ( P_Left )
+ while ( P_Left && P_Right )
{
x1 = P_Left ->X;
x2 = P_Right->X;
@@ -2895,7 +2889,7 @@
P_Left = draw_left;
P_Right = draw_right;
- while ( P_Left )
+ while ( P_Left && P_Right )
{
if ( P_Left->countL )
{