Fix Savannah bug #33992.

* src/base/ftstroke.c (FT_Stroker_ParseOutline): Fix border case.
This commit is contained in:
David Bevan 2011-08-15 17:34:01 +02:00 committed by Werner Lemberg
parent bad0160c16
commit 864c426eff
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2011-08-15 David Bevan <david.bevan@pb.com>
Fix Savannah bug #33992.
* src/base/ftstroke.c (FT_Stroker_ParseOutline): Fix border case.
2011-08-12 Werner Lemberg <wl@gnu.org
[truetype] Fix degenerate case in S{P,F,DP}VTL opcodes.

View File

@ -2222,9 +2222,13 @@
if ( error )
goto Exit;
error = FT_Stroker_EndSubPath( stroker );
if ( error )
goto Exit;
/* don't try to end the path if no segments have been generated */
if ( !stroker->first_point )
{
error = FT_Stroker_EndSubPath( stroker );
if ( error )
goto Exit;
}
first = last + 1;
}