ref: 864c426eff559dbcceb64bc42590007d6900ff23
parent: bad0160c1612ac48c94f490ac33318ccccb535e4
author: David Bevan <[email protected]>
date: Mon Aug 15 13:34:01 EDT 2011
Fix Savannah bug #33992. * src/base/ftstroke.c (FT_Stroker_ParseOutline): Fix border case.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-08-15 David Bevan <[email protected]>
+
+ Fix Savannah bug #33992.
+
+ * src/base/ftstroke.c (FT_Stroker_ParseOutline): Fix border case.
+
2011-08-12 Werner Lemberg <[email protected]
[truetype] Fix degenerate case in S{P,F,DP}VTL opcodes.
--- a/src/base/ftstroke.c
+++ b/src/base/ftstroke.c
@@ -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;
}