freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 6ec0434: Minor refactoring.


From: Alexei Podtelezhnikov
Subject: [freetype2] master 6ec0434: Minor refactoring.
Date: Mon, 31 Aug 2015 02:53:21 +0000

branch: master
commit 6ec0434ec9e36dd72d446b2b3dc4e1f56b962926
Author: Alexei Podtelezhnikov <address@hidden>
Commit: Alexei Podtelezhnikov <address@hidden>

    Minor refactoring.
---
 src/base/ftoutln.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/base/ftoutln.c b/src/base/ftoutln.c
index ef66b3c..cab0245 100644
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -942,8 +942,8 @@
       l_in = 0;
       last = outline->contours[c];
 
-      /* Counter i cycles though the points; counter j advances only */
-      /* if points are moved; anchor k marks the first moved point.  */
+      /* Counter j cycles though the points; counter i advances only  */
+      /* when points are moved; anchor k marks the first moved point. */
       for ( i = last, j = first, k = -1;
             j != i && i != k;
             j = j < last ? j + 1 : first )
@@ -953,6 +953,9 @@
           out.x = points[j].x - points[i].x;
           out.y = points[j].y - points[i].y;
           l_out = FT_Vector_NormLen( &out );
+
+          if ( l_out == 0 )
+            continue;
         }
         else
         {
@@ -960,9 +963,6 @@
           l_out = l_anchor;
         }
 
-        if ( l_out == 0 )
-          continue;
-
         if ( l_in != 0 )
         {
           if ( k < 0 )



reply via email to

[Prev in Thread] Current Thread [Next in Thread]