shithub: freetype+ttf2subf

Download patch

ref: 0e73d218bc9c87aebd60b64d772c8b9ece883a68
parent: 2c4832d30939b45c05757f0a05128ce64c4cacc7
author: Werner Lemberg <[email protected]>
date: Sat Nov 8 20:27:38 EST 2014

* src/base/ftstroke.c (ft_stroker_inside): Fix border intersections.

One more place to check whether `radius' is zero.

Problem reported by Marco Wertz <[email protected]>.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2014-11-09  Werner Lemberg  <[email protected]>
+
+	* src/base/ftstroke.c (ft_stroker_inside): Fix border intersections.
+
+	One more place to check whether `radius' is zero.
+
+	Problem reported by Marco Wertz <[email protected]>.
+
 2014-11-07  Werner Lemberg  <[email protected]>
 
 	Fix Savannah bug #43535.
--- a/src/base/ftstroke.c
+++ b/src/base/ftstroke.c
@@ -4,7 +4,7 @@
 /*                                                                         */
 /*    FreeType path stroker (body).                                        */
 /*                                                                         */
-/*  Copyright 2002-2006, 2008-2011, 2013 by                                */
+/*  Copyright 2002-2006, 2008-2011, 2013, 2014 by                          */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
 /*                                                                         */
 /*  This file is part of the FreeType project, and may only be used,       */
@@ -1002,7 +1002,8 @@
                                                     FT_Tan( theta ) ) );
 
 
-      intersect = FT_BOOL( stroker->line_length >= min_length &&
+      intersect = FT_BOOL( min_length                         &&
+                           stroker->line_length >= min_length &&
                            line_length          >= min_length );
     }