From 81725773800029731617b95cee57cd32a8b46756 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Sat, 4 May 2019 08:11:20 -0400 Subject: [PATCH] * src/smooth/ftgrays.c (gray_render_line): Small shortcut. --- ChangeLog | 4 ++++ src/smooth/ftgrays.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9f26035b6..7bf5ffdbb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2019-05-04 Alexei Podtelezhnikov + + * src/smooth/ftgrays.c (gray_render_line): Small shortcut. + 2019-05-04 Werner Lemberg Various clang 8.0 static analyzer fixes. diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c index e39f00bd7..b09bcceb6 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 ) {