Commit 81725773800029731617b95cee57cd32a8b46756

Alexei Podtelezhnikov 2019-05-04T08:11:20

* src/smooth/ftgrays.c (gray_render_line): Small shortcut.

diff --git a/ChangeLog b/ChangeLog
index 9f26035..7bf5ffd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2019-05-04  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/smooth/ftgrays.c (gray_render_line): Small shortcut.
+
 2019-05-04  Werner Lemberg  <wl@gnu.org>
 
 	Various clang 8.0 static analyzer fixes.
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index e39f00b..b09bcce 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -856,8 +856,8 @@ typedef ptrdiff_t  FT_PtrDist;
       ;
     else if ( dy == 0 ) /* ex1 != ex2 */  /* any horizontal line */
     {
-      ex1 = ex2;
-      gray_set_cell( RAS_VAR_ ex1, ey1 );
+      gray_set_cell( RAS_VAR_ ex2, ey2 );
+      goto End;
     }
     else if ( dx == 0 )
     {