aboutsummaryrefslogtreecommitdiff
path: root/freetype/src/base/ftstroke.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-11-10 15:49:48 +0100
committermarha <marha@users.sourceforge.net>2011-11-10 15:49:48 +0100
commitd783adea42f29bd7917929597ca1031b70587e1d (patch)
tree888ffc3043e659513c1760fdb7bd531810723afa /freetype/src/base/ftstroke.c
parentba1993a2eefbd475b13f373a861a401f06584cf8 (diff)
downloadvcxsrv-d783adea42f29bd7917929597ca1031b70587e1d.tar.gz
vcxsrv-d783adea42f29bd7917929597ca1031b70587e1d.tar.bz2
vcxsrv-d783adea42f29bd7917929597ca1031b70587e1d.zip
Updated to freetype 2.4.7
Diffstat (limited to 'freetype/src/base/ftstroke.c')
-rw-r--r--freetype/src/base/ftstroke.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/freetype/src/base/ftstroke.c b/freetype/src/base/ftstroke.c
index 3f24f9ee8..5399efe9d 100644
--- a/freetype/src/base/ftstroke.c
+++ b/freetype/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;
}